|
MediaWiki
REL1_20
|
CDB writer class. More...


Public Member Functions | |
| __construct ($fileName) | |
| __destruct () | |
| close () | |
| set ($key, $value) | |
Public Attributes | |
| $handle | |
| $hplist | |
| $numentries | |
| $pos | |
| $realFileName | |
| $tmpFileName | |
Protected Member Functions | |
| addbegin ($keylen, $datalen) | |
| addend ($keylen, $datalen, $h) | |
| finish () | |
| posplus ($len) | |
| throwException ($msg) | |
| Clean up the temp file and throw an exception. | |
| write ($buf) | |
CDB writer class.
Definition at line 281 of file Cdb_PHP.php.
| CdbWriter_PHP::__construct | ( | $ | fileName | ) |
| $fileName | string |
Reimplemented from CdbWriter.
Definition at line 290 of file Cdb_PHP.php.
References throwException().
Definition at line 306 of file Cdb_PHP.php.
References close().
| CdbWriter_PHP::addbegin | ( | $ | keylen, |
| $ | datalen | ||
| ) | [protected] |
| MWException |
| $keylen | |
| $datalen |
Definition at line 391 of file Cdb_PHP.php.
References throwException(), and write().
Referenced by set().
| CdbWriter_PHP::addend | ( | $ | keylen, |
| $ | datalen, | ||
| $ | h | ||
| ) | [protected] |
| $keylen | |
| $datalen | |
| $h |
Definition at line 374 of file Cdb_PHP.php.
References posplus().
Referenced by set().
| MWException |
Reimplemented from CdbWriter.
Definition at line 331 of file Cdb_PHP.php.
References finish(), throwException(), and wfIsWindows().
Referenced by __destruct().
| CdbWriter_PHP::finish | ( | ) | [protected] |
| MWException |
Definition at line 405 of file Cdb_PHP.php.
References $count, $pos, posplus(), throwException(), CdbFunctions\unsignedMod(), CdbFunctions\unsignedShiftRight(), and write().
Referenced by close().
| CdbWriter_PHP::posplus | ( | $ | len | ) | [protected] |
| MWException |
| $len |
Definition at line 360 of file Cdb_PHP.php.
References throwException().
| CdbWriter_PHP::set | ( | $ | key, |
| $ | value | ||
| ) |
| $key | |
| $value |
Reimplemented from CdbWriter.
Definition at line 317 of file Cdb_PHP.php.
References $value, addbegin(), addend(), CdbFunctions\hash(), and write().
| CdbWriter_PHP::throwException | ( | $ | msg | ) | [protected] |
Clean up the temp file and throw an exception.
| $msg | string |
| MWException |
Definition at line 482 of file Cdb_PHP.php.
Referenced by __construct(), addbegin(), close(), finish(), posplus(), and write().
| CdbWriter_PHP::write | ( | $ | buf | ) | [protected] |
| MWException |
| $buf |
Definition at line 349 of file Cdb_PHP.php.
References throwException().
Referenced by addbegin(), finish(), and set().
| CdbWriter_PHP::$handle |
Definition at line 282 of file Cdb_PHP.php.
| CdbWriter_PHP::$hplist |
Definition at line 284 of file Cdb_PHP.php.
| CdbWriter_PHP::$numentries |
Definition at line 285 of file Cdb_PHP.php.
| CdbWriter_PHP::$pos |
Definition at line 285 of file Cdb_PHP.php.
Referenced by finish().
| CdbWriter_PHP::$realFileName |
Definition at line 282 of file Cdb_PHP.php.
| CdbWriter_PHP::$tmpFileName |
Definition at line 282 of file Cdb_PHP.php.