Overview

Packages

  • Luxor
  • None

Classes

  • Luxor
  • Luxor_Driver
  • Luxor_Driver_sql
  • Luxor_Files
  • Luxor_Files_plain
  • Luxor_Lang
  • Luxor_Lang_Generic
  • Luxor_SimpleParse
  • Luxor_Tagger
  • Overview
  • Package
  • Class
  • Tree

Class Luxor_Lang

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

Direct known subclasses

Luxor_Lang_Generic
Package: Luxor
Author: Jan Schneider jan@horde.org
Since: Luxor 0.1
Located at Lang.php
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
# processInclude( mixed $frag, mixed $dir )
API documentation generated by ApiGen