Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /home/mitarbeiter/sven/public_html/tmp/devcon_php_base/dbi/dbconf.class
dev/con php base - Database interfaces

dbconf

dbconf

Read configuration from database.

 

public class dbconf

Read configuration from database.

AuthorsSven Klose <sven@devcon.net>

 

Public Method Summary

void

&dbconf(object dbctrl &$db)

Construct object.
bool

exists(string $name)

Check if an entry exists.
mixed

&get(string $name)

Fetch an entry's content.
bool

is_file(string $name)

Check if an entry points to a file.
void

set(string $name, mixed $data, [ integer $is_file ])

Write a config record.
void

create(string $name, string $descr)

Create a new config record.
void

define_tables(object dbdepend &$def)

Define database tables.

Private Method Summary

void

_get( $name)

Warning: documentation is missing.

Private Field Summary

unknown

$db

unknown

$_res

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
string $name
Entry name.
Returns bool

True if entry exists.


&get

public mixed &get( string $name )

  Fetch an entry's content.

Parameter
string $name
Entry name.
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
string $name
Entry name.
Returns bool

True if entry exists.


set

public void set( string $name, mixed $data, [ integer $is_file ] )

  Write a config record.

Parameter
string $name
Entry name.
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 $name
Entry name.
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


Private Method Details

_get

private void _get( $name )

 

Warning: documentation is missing.

Parameter
$name
Warning: documentation is missing.
Returns void


Private Field Details

$db

private unknown $db

>><<



$_res

private unknown $_res

>><<




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta