MediaWiki
REL1_22
|
Read from a CDB file. More...
Public Member Functions | |
__construct ($fileName) | |
Construct the object and open the file. | |
close () | |
Close the file. | |
get ($key) | |
Get a value with a given key. | |
Static Public Member Functions | |
static | haveExtension () |
Returns true if the native extension is available. | |
static | open ($fileName) |
Open a file and return a subclass instance. |
Read from a CDB file.
Native and pure PHP implementations are provided. http://cr.yp.to/cdb.html
CdbReader::__construct | ( | $ | fileName | ) | [abstract] |
Construct the object and open the file.
Reimplemented in CdbReader_PHP.
CdbReader::close | ( | ) | [abstract] |
Close the file.
Optional, you can just let the variable go out of scope.
Reimplemented in CdbReader_PHP.
CdbReader::get | ( | $ | key | ) | [abstract] |
Get a value with a given key.
Only string values are supported.
$key | string |
Reimplemented in CdbReader_PHP.
static CdbReader::haveExtension | ( | ) | [static] |
Returns true if the native extension is available.
Definition at line 50 of file Cdb.php.
Referenced by CdbWriter\open(), and CdbTest\setUp().
static CdbReader::open | ( | $ | fileName | ) | [static] |
Open a file and return a subclass instance.
$fileName | string |
Definition at line 36 of file Cdb.php.
References wfDebug().
Referenced by Interwiki\getAllPrefixesCached(), and Interwiki\getInterwikiCacheEntry().