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.
|
protected |
Definition at line 96 of file class.ilCtrlStructureReader.php.
References ilCachedCtrl\flush().
|
protected |
Definition at line 425 of file class.ilCtrlStructureReader.php.
References $ilDB.
Referenced by getStructure().
|
protected |
Definition at line 139 of file class.ilCtrlStructureReader.php.
References Vendor\Package\$e, and Vendor\Package\$f.
|
protected |
Definition at line 347 of file class.ilCtrlStructureReader.php.
References $res.
|
protected |
Definition at line 372 of file class.ilCtrlStructureReader.php.
|
protected |
Definition at line 388 of file class.ilCtrlStructureReader.php.
References $res.
|
protected |
Definition at line 380 of file class.ilCtrlStructureReader.php.
|
protected |
Definition at line 435 of file class.ilCtrlStructureReader.php.
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.
|
protected |
Definition at line 173 of file class.ilCtrlStructureReader.php.
|
protected |
Definition at line 190 of file class.ilCtrlStructureReader.php.
References $ilDB.
|
protected |
LogicException if some file declares control structure for multiple classes
RuntimeException if there are different locations defined for some class.
Definition at line 311 of file class.ilCtrlStructureReader.php.
References ilCtrlStructure\withClassChild(), and ilCtrlStructure\withClassScript().
|
protected |
Definition at line 102 of file class.ilCtrlStructureReader.php.
References Vendor\Package\$e, and ilCtrlStructure\getClassScriptOf().
ilCtrlStructureReader::readStructure | ( | $a_force = false , |
|
$a_dir = "" , |
|||
$a_comp_prefix = "" , |
|||
$a_plugin_path = "" |
|||
) |
Definition at line 52 of file class.ilCtrlStructureReader.php.
|
protected |
Definition at line 281 of file class.ilCtrlStructureReader.php.
References $ilDB.
ilCtrlStructureReader::setIniFile | ( | $a_ini_file | ) |
Definition at line 27 of file class.ilCtrlStructureReader.php.
|
protected |
Definition at line 160 of file class.ilCtrlStructureReader.php.
|
protected |
Definition at line 228 of file class.ilCtrlStructureReader.php.
References $ilDB, ilCtrlStructure\getClassChildren(), and ilCtrlStructure\getClassScripts().
ilCtrlStructureReader::withDB | ( | \ilDBInterface | $db | ) |
Definition at line 418 of file class.ilCtrlStructureReader.php.
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.