wikimedia/cdb
CDB functions for PHP
Loading...
Searching...
No Matches
Cdb\Reader\DBA Class Reference

Reader class which uses the DBA extension (php-dba) More...

+ Inheritance diagram for Cdb\Reader\DBA:

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.
 

Detailed Description

Reader class which uses the DBA extension (php-dba)

Member Function Documentation

◆ close()

Cdb\Reader\DBA::close ( )

Close the file.

Optional, you can just let the variable go out of scope.

Reimplemented from Cdb\Reader.

◆ exists()

Cdb\Reader\DBA::exists ( $key)

Check whether key exists.

Parameters
string$key
Returns
bool

Reimplemented from Cdb\Reader.

◆ firstkey()

Cdb\Reader\DBA::firstkey ( )

Fetch first key.

Returns
string|false

Reimplemented from Cdb\Reader.

◆ get()

Cdb\Reader\DBA::get ( $key)

Get a value with a given key.

Only string values are supported.

Parameters
string | int$key
Returns
string|false

Reimplemented from Cdb\Reader.

◆ nextkey()

Cdb\Reader\DBA::nextkey ( )

Fetch next key.

Returns
string|false

Reimplemented from Cdb\Reader.


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