MediaWiki
1.23.5
|
Writer class which uses the DBA extension. More...
Public Member Functions | |
__construct ( $fileName) | |
Create the object and open the file. More... | |
close () | |
Close the writer object. More... | |
set ( $key, $value) | |
Set a key to a given value. More... | |
Public Member Functions inherited from CdbWriter | |
__destruct () | |
If the object goes out of scope, close it for sanity. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from CdbWriter | |
static | open ( $fileName) |
Open a writer and return a subclass instance. More... | |
Protected Member Functions inherited from CdbWriter | |
isWindows () | |
Are we running on Windows? More... | |
Protected Attributes inherited from CdbWriter | |
$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... | |
Writer class which uses the DBA extension.
Definition at line 49 of file CdbDBA.php.
CdbWriterDBA::__construct | ( | $fileName | ) |
Create the object and open the file.
$fileName | string |
Reimplemented from CdbWriter.
Definition at line 50 of file CdbDBA.php.
CdbWriterDBA::close | ( | ) |
Close the writer object.
You should call this function before the object goes out of scope, to write out the final hashtables.
Reimplemented from CdbWriter.
Definition at line 63 of file CdbDBA.php.
References CdbWriter\isWindows().
CdbWriterDBA::set | ( | $key, | |
$value | |||
) |
Set a key to a given value.
The value will be converted to string.
$key | string |
$value | string |
Reimplemented from CdbWriter.
Definition at line 59 of file CdbDBA.php.
References $value.