wikimedia/cdb
CDB functions for PHP
|
Writer class which uses the DBA extension (php-dba) More...
Public Member Functions | |
__construct (string $fileName) | |
Create the object and open the file. | |
set ( $key, $value) | |
Set a key to a given value. | |
close () | |
Close the writer object. | |
Public Member Functions inherited from Cdb\Writer | |
__destruct () | |
If the object goes out of scope, close it. | |
Protected Attributes | |
$handle | |
The file handle. | |
Protected Attributes inherited from Cdb\Writer | |
$realFileName | |
$tmpFileName | |
Additional Inherited Members | |
Static Public Member Functions inherited from Cdb\Writer | |
static | open ( $fileName) |
Open a writer and return a subclass instance. | |
Protected Member Functions inherited from Cdb\Writer | |
isWindows () | |
Are we running on Windows? | |
Writer class which uses the DBA extension (php-dba)
Cdb\Writer\DBA::__construct | ( | string | $fileName | ) |
Create the object and open the file.
string | $fileName |
Cdb\Writer\DBA::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 Cdb\Writer.
Cdb\Writer\DBA::set | ( | $key, | |
$value ) |
Set a key to a given value.
The value will be converted to string.
string | $key | |
string | $value |
Reimplemented from Cdb\Writer.