function kintParser::_init
1 call to kintParser::_init()
- kintParser::factory in kint/
kint/ inc/ kintParser.class.php - * the only public entry point to return a parsed representation of a variable * * @static * *
File
-
kint/
kint/ inc/ kintParser.class.php, line 16
Class
Code
private static function _init() {
$fh = opendir(KINT_DIR . 'parsers/custom/');
while ($fileName = readdir($fh)) {
if (substr($fileName, -4) !== '.php') {
continue;
}
require KINT_DIR . 'parsers/custom/' . $fileName;
self::$_customDataTypes[] = substr($fileName, 0, -4);
}
$fh = opendir(KINT_DIR . 'parsers/objects/');
while ($fileName = readdir($fh)) {
if (substr($fileName, -4) !== '.php') {
continue;
}
require KINT_DIR . 'parsers/objects/' . $fileName;
self::$_objectParsers[] = substr($fileName, 0, -4);
}
}