CdbReader Class Reference

Read from a CDB file. More...

Inherited by CdbReader_PHP.

List of all members.

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 open ($fileName)
 Open a file and return a subclass instance.
static haveExtension ()
 Returns true if the native extension is available.


Detailed Description

Read from a CDB file.

Native and pure PHP implementations are provided. http://cr.yp.to/cdb.html

Definition at line 8 of file Cdb.php.


Constructor & Destructor Documentation

CdbReader::__construct ( fileName  )  [abstract]

Construct the object and open the file.

Reimplemented in CdbReader_PHP.


Member Function Documentation

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.

Reimplemented in CdbReader_PHP.

static CdbReader::haveExtension (  )  [static]

Returns true if the native extension is available.

Definition at line 24 of file Cdb.php.

Referenced by CdbWriter::open(), and CdbTest::setup().

static CdbReader::open ( fileName  )  [static]

Open a file and return a subclass instance.

Definition at line 12 of file Cdb.php.

References wfDebug().

Referenced by LCStore_CDB::get(), and Interwiki::getInterwikiCacheEntry().


The documentation for this class was generated from the following file:

Generated on Sat Apr 30 22:57:33 2011 for MediaWiki by  doxygen 1.5.9