$_params
$_params : array
Hash containing connection parameters.
Luxor storage implementation for PHP's PEAR database abstraction layer.
The table structure can be created by the scripts/drivers/luxor.sql script.
$Horde: luxor/lib/Driver/sql.php,v 1.29 2007/09/23 13:32:35 jan Exp $
factory( $source, string $driver = null, array $params = null) : mixed
Attempts to return a concrete Luxor_Driver instance based on $driver.
$source | ||
string | $driver | The type of concrete Luxor_Driver subclass to return. The is based on the storage driver ($driver). The code is dynamically included. |
array | $params | (optional) A hash containing any additional configuration or connection parameters a subclass might need. |
The newly created concrete Luxor_Driver instance, or false on an error.
index(string $symname, integer $fileId, integer $line, integer $langid, integer $type) : mixed
Adds a symbol definition to the sybmol index.
string | $symname | The symbol's name. |
integer | $fileId | The unique ID of the file where this symbol was defined. |
integer | $line | The linenumber where this symbol was defined. |
integer | $langid | The unique ID of the language the file was written in. |
integer | $type | The symbol type. |
PEAR_Error on error, true on success.
reference(string $symname, integer $fileId, integer $line) : mixed
Add a symbol reference to the reference index.
string | $symname | The name of the used symbol. |
integer | $fileId | The unique ID of the file in which the symbol was used. |
integer | $line | The number of line in which the symbol was used. |
PEAR_Error on error, true on success.
createFileId(string $filename, string $tag = '', integer $lastmodified = false) : integer
Created a unique ID for a given filename.
string | $filename | The name of the file. |
string | $tag | The tag of the file. |
integer | $lastmodified | The timestamp the file was last modified. |
A unique ID for this file or PEAR_Error on error.