MediaWiki
1.23.0
|
Write to a CDB file. More...
Public Member Functions | |
__construct ( $fileName) | |
Create the object and open the file. More... | |
__destruct () | |
If the object goes out of scope, close it for sanity. More... | |
close () | |
Close the writer object. More... | |
set ( $key, $value) | |
Set a key to a given value. More... | |
Static Public Member Functions | |
static | open ( $fileName) |
Open a writer and return a subclass instance. More... | |
Protected Member Functions | |
isWindows () | |
Are we running on Windows? More... | |
Protected Attributes | |
$handle | |
The file handle. More... | |
string | $realFileName |
File we'll be writing to when we're done. More... | |
string | $tmpFileName |
File we write to temporarily until we're done. More... | |
Write to a CDB file.
Native and pure PHP implementations are provided.
|
abstract |
Create the object and open the file.
$fileName | string |
Reimplemented in CdbWriterPHP, and CdbWriterDBA.
CdbWriter::__destruct | ( | ) |
|
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 CdbWriterPHP, and CdbWriterDBA.
Referenced by __destruct().
|
protected |
Are we running on Windows?
Definition at line 150 of file Cdb.php.
Referenced by CdbWriterDBA\close(), and CdbWriterPHP\close().
|
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 112 of file Cdb.php.
References CdbReader\haveExtension().
Referenced by LCStoreCDB\startWrite().
|
abstract |
Set a key to a given value.
The value will be converted to string.
$key | string |
$value | string |
Reimplemented in CdbWriterPHP, and CdbWriterDBA.
|
protected |
|
protected |