MediaWiki  REL1_19
CdbWriter Class Reference

Write to a CDB file. More...

Inheritance diagram for CdbWriter:

List of all members.

Public Member Functions

 __construct ($fileName)
 Create the object and open the file.
 close ()
 Close the writer object.
 set ($key, $value)
 Set a key to a given value.

Static Public Member Functions

static open ($fileName)
 Open a writer and return a subclass instance.

Detailed Description

Write to a CDB file.

Native and pure PHP implementations are provided.

Definition at line 68 of file Cdb.php.


Constructor & Destructor Documentation

CdbWriter::__construct ( fileName) [abstract]

Create the object and open the file.

Parameters:
$fileNamestring

Reimplemented in CdbWriter_PHP.


Member Function Documentation

CdbWriter::close ( ) [abstract]

Close the writer object.

You should call this function before the object goes out of scope, to write out the final hashtables.

Reimplemented in CdbWriter_PHP.

static CdbWriter::open ( fileName) [static]

Open a writer and return a subclass instance.

The user must have write access to the directory, for temporary file creation.

Parameters:
$fileNamestring
Returns:
CdbWriter_DBA|CdbWriter_PHP

Definition at line 77 of file Cdb.php.

References CdbReader\haveExtension(), and wfDebug().

Referenced by LCStore_CDB\startWrite().

Here is the call graph for this function:

Here is the caller graph for this function:

CdbWriter::set ( key,
value 
) [abstract]

Set a key to a given value.

The value will be converted to string.

Parameters:
$keystring
$valuestring

Reimplemented in CdbWriter_PHP.


The documentation for this class was generated from the following file: