MediaWiki REL1_32
|
Reads PHP code and returns the FQCN of every class defined within it. More...
Public Member Functions | |
getClasses ( $code) | |
Protected Member Functions | |
implodeTokens () | |
Returns the string representation of the tokens within the current expect sequence and resets the sequence. | |
tryBeginExpect ( $token) | |
Determine if $token begins the next expect sequence. | |
tryEndExpect ( $token) | |
Accepts the next token in an expect sequence. | |
Protected Attributes | |
array | $alias |
Class alias with target/name fields. | |
array | $classes |
List of FQCN detected in this pass. | |
string | $namespace = '' |
Current namespace. | |
array | $startToken |
Token from token_get_all() that started an expect sequence. | |
array | $tokens |
List of tokens that are members of the current expect sequence. | |
Reads PHP code and returns the FQCN of every class defined within it.
Definition at line 375 of file AutoloadGenerator.php.
ClassCollector::getClasses | ( | $code | ) |
string | $code | PHP code (including <?php) to detect class names from |
Definition at line 406 of file AutoloadGenerator.php.
References $classes, $code, classes, tryBeginExpect(), and tryEndExpect().
|
protected |
Returns the string representation of the tokens within the current expect sequence and resets the sequence.
Definition at line 546 of file AutoloadGenerator.php.
References $content.
Referenced by tryEndExpect().
|
protected |
Determine if $token begins the next expect sequence.
array | $token |
Definition at line 429 of file AutoloadGenerator.php.
Referenced by getClasses().
|
protected |
Accepts the next token in an expect sequence.
array | $token |
Definition at line 457 of file AutoloadGenerator.php.
References classes, false, and implodeTokens().
Referenced by getClasses().
|
protected |
Class alias with target/name fields.
Definition at line 400 of file AutoloadGenerator.php.
|
protected |
List of FQCN detected in this pass.
Definition at line 385 of file AutoloadGenerator.php.
Referenced by getClasses().
|
protected |
Current namespace.
Definition at line 380 of file AutoloadGenerator.php.
|
protected |
Token from token_get_all() that started an expect sequence.
Definition at line 390 of file AutoloadGenerator.php.
|
protected |
List of tokens that are members of the current expect sequence.
Definition at line 395 of file AutoloadGenerator.php.