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

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

+ Inheritance diagram for Cdb\Writer\DBA:

Public Member Functions

 __construct (string $fileName)
 Create the object and open the file.
 
 set ( $key, $value)
 Set a key to a given value.
 
 close ()
 Close the writer object.
 
- Public Member Functions inherited from Cdb\Writer
 __destruct ()
 If the object goes out of scope, close it.
 

Protected Attributes

 $handle
 The file handle.
 
- Protected Attributes inherited from Cdb\Writer
 $realFileName
 
 $tmpFileName
 

Additional Inherited Members

- Static Public Member Functions inherited from Cdb\Writer
static open ( $fileName)
 Open a writer and return a subclass instance.
 
- Protected Member Functions inherited from Cdb\Writer
 isWindows ()
 Are we running on Windows?
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

Cdb\Writer\DBA::__construct ( string  $fileName)

Create the object and open the file.

Parameters
string$fileName

Member Function Documentation

◆ close()

Cdb\Writer\DBA::close ( )

Close the writer object.

You should call this function before the object goes out of scope, to write out the final hashtables.

Reimplemented from Cdb\Writer.

◆ set()

Cdb\Writer\DBA::set (   $key,
  $value 
)

Set a key to a given value.

The value will be converted to string.

Parameters
string$key
string$value

Reimplemented from Cdb\Writer.


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