|
MediaWiki
REL1_23
|
Write to a CDB file. More...


Public Member Functions | |
| __construct ($fileName) | |
| Create the object and open the file. | |
| __destruct () | |
| If the object goes out of scope, close it for sanity. | |
| 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. | |
Protected Member Functions | |
| isWindows () | |
| Are we running on Windows? | |
Protected Attributes | |
| $handle | |
| The file handle. | |
| string | $realFileName |
| File we'll be writing to when we're done. | |
| string | $tmpFileName |
| File we write to temporarily until we're done. | |
Write to a CDB file.
Native and pure PHP implementations are provided.
| CdbWriter::__construct | ( | $ | fileName | ) | [abstract] |
Create the object and open the file.
| $fileName | string |
Reimplemented in CdbWriterPHP, and CdbWriterDBA.
| 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 CdbWriterPHP, and CdbWriterDBA.
| CdbWriter::isWindows | ( | ) | [protected] |
Are we running on Windows?
Definition at line 150 of file Cdb.php.
Referenced by CdbWriterDBA\close(), and CdbWriterPHP\close().
| static CdbWriter::open | ( | $ | fileName | ) | [static] |
| 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 CdbWriterPHP, and CdbWriterDBA.
string CdbWriter::$realFileName [protected] |
string CdbWriter::$tmpFileName [protected] |