CDB writer class.
More...
|
| __construct (string $fileName) |
| Create the object and open the file.
|
|
| set ( $key, $value) |
|
| close () |
| Close the writer object.
|
|
| __destruct () |
| If the object goes out of scope, close it.
|
|
|
| $handle |
|
| $hplist = [] |
|
| $numentries = 0 |
|
| $pos |
|
| $realFileName |
|
| $tmpFileName |
|
|
static | open ( $fileName) |
| Open a writer and return a subclass instance.
|
|
CDB writer class.
This is a port of D.J. Bernstein's CDB to PHP. It's based on the copy that appears in PHP 5.3.
◆ __construct()
Cdb\Writer\PHP::__construct |
( |
string | $fileName | ) |
|
Create the object and open the file.
- Parameters
-
◆ close()
Cdb\Writer\PHP::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.
◆ posplus()
Cdb\Writer\PHP::posplus |
( |
| $len | ) |
|
|
protected |
◆ set()
Cdb\Writer\PHP::set |
( |
| $key, |
|
|
| $value ) |
◆ throwException()
Cdb\Writer\PHP::throwException |
( |
| $msg | ) |
|
|
protected |
Clean up the temp file and throw an exception.
- Parameters
-
- Returns
- never
- Exceptions
-
◆ write()
Cdb\Writer\PHP::write |
( |
| $buf | ) |
|
|
protected |
The documentation for this class was generated from the following file: