\Luxor_Lang

Luxor_Lang:: defines an API for the different programming languages Luxor is able to parse.

Summary

Methods
Properties
Constants
factory()
builder()
processInclude()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

factory()

factory(string  $driver, array  $params = array()) : mixed

Attempts to return a concrete Luxor_Lang instance based on $driver.

Parameters

string $driver

The type of concrete Luxor_Lang subclass to return. The is based on the repository driver ($driver). The code is dynamically included.

array $params

(optional) A hash containing any additional configuration or connection parameters a subclass might need.

Returns

mixed —

The newly created concrete Luxor_Lang instance, or false on an error.

builder()

builder(\Luxor_Files  $files, string  $pathname) : mixed

Attempts to determine a files programming language and returns a parser instance for this language.

Parameters

\Luxor_Files $files

An instance of Luxor_Files to use for file operations and path name resolution.

string $pathname

The path name of the file to create a parser for.

Returns

mixed —

The created concrete Luxor_Lang instance, or false on error.

processInclude()

processInclude(  $frag,   $dir) 

Parameters

$frag
$dir