MediaWiki
REL1_22
|
Write to a CDB file. More...
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. |
Write to a CDB file.
Native and pure PHP implementations are provided.
CdbWriter::__construct | ( | $ | fileName | ) | [abstract] |
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.
$fileName | string |
Definition at line 92 of file Cdb.php.
References CdbReader\haveExtension(), and wfDebug().
CdbWriter::set | ( | $ | key, |
$ | value | ||
) | [abstract] |
Set a key to a given value.
The value will be converted to string.
$key | string |
$value | string |
Reimplemented in CdbWriter_PHP.