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_Generic

A generic implementation of the Luxor_Lang API to handle all programming languages that don't have a specific driver.

Luxor_Lang
Extended by Luxor_Lang_Generic
Package: Luxor
Author: Jan Schneider jan@horde.org
Since: Luxor 0.1
Located at Lang/Generic.php
Methods summary
public
# __construct( array $params )

Constructs a new generic language parser.

Constructs a new generic language parser.

Parameters

$params
A hash containing necessary parameters.
public mixed
# indexFile( string $path, integer $fileId )

Indexes a file.

Indexes a file.

Parameters

$path
The full path name of the file to index.
$fileId
The file's unique ID.

Returns

mixed
A PEAR_Error on error.
public mixed
# referenceFile( string $path, integer $fileId )

References a file.

References a file.

Parameters

$path
The full path name of the file to reference.
$fileId
The file's unique ID.

Returns

mixed
A PEAR_Error on error.
public
# processCode( string $code, mixed $altsources = array() )

Process a chunk of code

Process a chunk of code

Basically, look for anything that looks like a symbol, and if it is then make it a hyperlink, unless it's a reserved word in this language.

Parameters

$code
Reference to the code to markup.
$altsources
Methods inherited from Luxor_Lang
builder(), factory(), processInclude()
Properties summary
public string $_language

The current language.

The current language.

#
public array $_langmap

This language's copy of the 'langmap' hash from the $languages array.

This language's copy of the 'langmap' hash from the $languages array.

#
API documentation generated by ApiGen