ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilCtrlStructureReader. More...
Public Member Functions | |
__construct ($a_ini_file=null) | |
setIniFile ($a_ini_file) | |
getStructure () | |
parse code files and store call structure in db More... | |
readStructure ( $a_force=false, $a_dir="", $a_comp_prefix="", $a_plugin_path="") | |
withDB (\ilDBInterface $db) | |
Data Fields | |
$executed | |
$db = null | |
const | INTERESTING_FILES_REGEXP = "~^(class\..*\.php)$~i" |
const | GUI_CLASS_FILE_REGEXP = "~^.*[/\\\\]class\.(.*GUI)\.php$~i" |
const | IL_CTRL_DECLARATION_REGEXP = '~^.*@{WHICH}\s+([\w\\\\]+)\s*:\s*([\w\\\\]+(\s*,\s*[\w\\\\]+)*)\s*$~mi' |
Protected Member Functions | |
flushCaches () | |
readDirTo (string $a_cdir, \ilCtrlStructure $cs) | |
getFilesIn (string $dir) | |
shouldDescendToDirectory (string $dir) | |
normalizePath (string $path) | |
isInterestingFile (string $file) | |
panicOnDuplicateClass (string $full_path, string $other_path, string $parent) | |
storeToDB (\ilCtrlStructure $ctrl_structure, string $start_dir) | |
setClassFileIdsInDB () | |
parseFileTo (\ilCtrlStructure $cs, string $full_path, string $content) | |
getGUIClassNameFromClassPath (string $path) | |
containsClassDefinitionFor (string $class, string $content) | |
getIlCtrlCalls (string $content) | |
getIlCtrlIsCalledBy (string $content) | |
getIlCtrlDeclarations (string $content, string $which) | |
getDB () | |
getILIASAbsolutePath () | |
Protected Attributes | |
$read_plugins = false | |
Class ilCtrlStructureReader.
Reads call structure of classes into db
Definition at line 13 of file class.ilCtrlStructureReader.php.
ilCtrlStructureReader::__construct | ( | $a_ini_file = null | ) |
Definition at line 19 of file class.ilCtrlStructureReader.php.
|
protected |
Definition at line 356 of file class.ilCtrlStructureReader.php.
Referenced by parseFileTo().
|
protected |
Definition at line 96 of file class.ilCtrlStructureReader.php.
References ilCachedCtrl\flush().
Referenced by readStructure().
|
protected |
Definition at line 425 of file class.ilCtrlStructureReader.php.
Referenced by getStructure(), panicOnDuplicateClass(), readStructure(), setClassFileIdsInDB(), and storeToDB().
|
protected |
Definition at line 139 of file class.ilCtrlStructureReader.php.
References Vendor\Package\$e, Vendor\Package\$f, normalizePath(), and shouldDescendToDirectory().
Referenced by readDirTo().
|
protected |
Definition at line 347 of file class.ilCtrlStructureReader.php.
References $res.
Referenced by parseFileTo().
|
protected |
Definition at line 372 of file class.ilCtrlStructureReader.php.
References getIlCtrlDeclarations().
Referenced by parseFileTo().
|
protected |
Definition at line 388 of file class.ilCtrlStructureReader.php.
References $res.
Referenced by getIlCtrlCalls(), and getIlCtrlIsCalledBy().
|
protected |
Definition at line 380 of file class.ilCtrlStructureReader.php.
References getIlCtrlDeclarations().
Referenced by parseFileTo().
|
protected |
Definition at line 435 of file class.ilCtrlStructureReader.php.
References normalizePath().
Referenced by readStructure(), and shouldDescendToDirectory().
ilCtrlStructureReader::getStructure | ( | ) |
parse code files and store call structure in db
Definition at line 35 of file class.ilCtrlStructureReader.php.
References $ilDB, and getDB().
|
protected |
Definition at line 180 of file class.ilCtrlStructureReader.php.
Referenced by readDirTo().
|
protected |
Definition at line 173 of file class.ilCtrlStructureReader.php.
Referenced by getFilesIn(), getILIASAbsolutePath(), and shouldDescendToDirectory().
|
protected |
Definition at line 190 of file class.ilCtrlStructureReader.php.
References $ilDB, and getDB().
Referenced by readDirTo().
|
protected |
Definition at line 311 of file class.ilCtrlStructureReader.php.
References containsClassDefinitionFor(), getGUIClassNameFromClassPath(), getIlCtrlCalls(), getIlCtrlIsCalledBy(), ilCtrlStructure\withClassChild(), and ilCtrlStructure\withClassScript().
Referenced by readDirTo().
|
protected |
Definition at line 102 of file class.ilCtrlStructureReader.php.
References Vendor\Package\$e, ilCtrlStructure\getClassScriptOf(), getFilesIn(), isInterestingFile(), panicOnDuplicateClass(), and parseFileTo().
Referenced by readStructure().
ilCtrlStructureReader::readStructure | ( | $a_force = false , |
|
$a_dir = "" , |
|||
$a_comp_prefix = "" , |
|||
$a_plugin_path = "" |
|||
) |
Definition at line 52 of file class.ilCtrlStructureReader.php.
References $ilDB, flushCaches(), getDB(), getILIASAbsolutePath(), readDirTo(), setClassFileIdsInDB(), and storeToDB().
|
protected |
Definition at line 281 of file class.ilCtrlStructureReader.php.
References $ilDB, and getDB().
Referenced by readStructure().
ilCtrlStructureReader::setIniFile | ( | $a_ini_file | ) |
Definition at line 27 of file class.ilCtrlStructureReader.php.
|
protected |
Definition at line 160 of file class.ilCtrlStructureReader.php.
References getILIASAbsolutePath(), and normalizePath().
Referenced by getFilesIn().
|
protected |
Definition at line 228 of file class.ilCtrlStructureReader.php.
References $ilDB, ilCtrlStructure\getClassChildren(), ilCtrlStructure\getClassScripts(), and getDB().
Referenced by readStructure().
ilCtrlStructureReader::withDB | ( | \ilDBInterface | $db | ) |
ilCtrlStructureReader::$db = null |
Definition at line 16 of file class.ilCtrlStructureReader.php.
ilCtrlStructureReader::$executed |
Definition at line 15 of file class.ilCtrlStructureReader.php.
|
protected |
Definition at line 17 of file class.ilCtrlStructureReader.php.
const ilCtrlStructureReader::GUI_CLASS_FILE_REGEXP = "~^.*[/\\\\]class\.(.*GUI)\.php$~i" |
Definition at line 345 of file class.ilCtrlStructureReader.php.
const ilCtrlStructureReader::IL_CTRL_DECLARATION_REGEXP = '~^.*@{WHICH}\s+([\w\\\\]+)\s*:\s*([\w\\\\]+(\s*,\s*[\w\\\\]+)*)\s*$~mi' |
Definition at line 367 of file class.ilCtrlStructureReader.php.
const ilCtrlStructureReader::INTERESTING_FILES_REGEXP = "~^(class\..*\.php)$~i" |
Definition at line 178 of file class.ilCtrlStructureReader.php.