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