SS_ConfigStaticManifest_Parser
class SS_ConfigStaticManifest_Parser (View source)
A parser that processes a PHP file, using PHP's built in parser to get a string of tokens, then processing them to find the static class variables, their access levels & values
We can't do this using TokenisedRegularExpression because we need to keep track of state as we process the token list (when we enter and leave a namespace or class, when we see an access level keyword, etc)
Methods
No description
No description
No description
Parse the given file to find the static variables declared in it, along with their access & values
During parsing we've found a "static" keyword. Parse out the variable names and value assignments that follow.
Details
__construct($path)
getInfo()
getStatics()
parse()
Parse the given file to find the static variables declared in it, along with their access & values
parseStatic($access, $class)
During parsing we've found a "static" keyword. Parse out the variable names and value assignments that follow.
Seperated out from parse partially so that we can recurse if there are multiple statics being declared in a comma seperated list