wikimedia/cdb
CDB functions for PHP
|
Reader class which uses the DBA extension (php-dba) More...
Public Member Functions | |
__construct ( $fileName) | |
close () | |
Close the file. | |
get ( $key) | |
Get a value with a given key. | |
exists ( $key) | |
Check whether key exists. | |
firstkey () | |
Fetch first key. | |
nextkey () | |
Fetch next key. | |
Protected Attributes | |
$handle | |
Additional Inherited Members | |
Static Public Member Functions inherited from Cdb\Reader | |
static | open ( $fileName) |
Open a file and return a subclass instance. | |
static | haveExtension () |
Returns true if the native extension is available. | |
Reader class which uses the DBA extension (php-dba)
Cdb\Reader\DBA::close | ( | ) |
Close the file.
Optional, you can just let the variable go out of scope.
Reimplemented from Cdb\Reader.
Cdb\Reader\DBA::exists | ( | $key | ) |
Cdb\Reader\DBA::firstkey | ( | ) |
Cdb\Reader\DBA::get | ( | $key | ) |
Get a value with a given key.
Only string values are supported.
string | int | $key |
Reimplemented from Cdb\Reader.
Cdb\Reader\DBA::nextkey | ( | ) |