Class Luxor_Lang
Luxor_Lang:: defines an API for the different programming languages Luxor
is able to parse.
Methods summary
public
mixed
|
#
factory( string $driver, array $params = array() )
Attempts to return a concrete Luxor_Lang instance based on $driver.
Attempts to return a concrete Luxor_Lang instance based on $driver.
Parameters
- $driver
- <p>The type of concrete Luxor_Lang subclass
to return. The is based on the repository
driver ($driver). The code is dynamically
included.</p>
- $params
- <p>(optional) A hash containing any additional
configuration or connection parameters a
subclass might need.</p>
Returns
mixed The newly created concrete Luxor_Lang instance, or
false on an error.
|
public
mixed
|
#
builder( Luxor_Files $files, string $pathname )
Attempts to determine a files programming language and returns
a parser instance for this language.
Attempts to determine a files programming language and returns
a parser instance for this language.
Parameters
- $files
- <p>An instance of Luxor_Files to use for file
operations and path name resolution.</p>
- $pathname
- <p>The path name of the file to create a
parser for.</p>
Returns
mixed The created concrete Luxor_Lang instance, or false
on error.
|
public
|
|