Public Method Details |
&dbconf |
public void &dbconf( object dbctrl &$db )
|
|
Construct object.
|
Parameter |
|
object dbctrl |
&$db |
|
|
Database connection. |
|
Returns |
void |
|
exists |
public bool exists( string $name )
|
|
Check if an entry exists.
|
Parameter |
|
|
Returns |
bool True if entry exists. |
|
&get |
public mixed &get( string $name )
|
|
Fetch an entry's content.
|
Parameter |
|
|
Returns |
mixed Contents of entry. If the entry points to a file,
the file content is returned. |
|
is_file |
public bool is_file( string $name )
|
|
Check if an entry points to a file.
|
Parameter |
|
|
Returns |
bool True if entry exists. |
|
set |
public void set( string $name, mixed $data, [ integer $is_file ] )
|
|
Write a config record.
|
Parameter |
|
|
|
mixed |
$data |
|
|
New content of entry. |
|
|
integer |
$is_file |
= >>0<< |
|
If true, $data contains the name of a file that
holds the content. |
|
Returns |
void |
|
create |
public void create( string $name, string $descr )
|
|
Create a new config record.
|
Parameter |
|
|
|
string |
$descr |
|
|
Human-readable entry description. |
|
Returns |
void |
|
define_tables |
public void define_tables( object dbdepend &$def )
|
|
Define database tables.
|
Parameter |
|
object dbdepend |
&$def |
|
|
Database description to use. |
|
Returns |
void |
|