MediaWiki
REL1_22
|
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 283 of file Cdb_PHP.php.
CdbWriter_PHP::__construct | ( | $ | fileName | ) |
$fileName | string |
Reimplemented from CdbWriter.
Definition at line 292 of file Cdb_PHP.php.
References array(), and throwException().
Definition at line 308 of file Cdb_PHP.php.
References close().
CdbWriter_PHP::addbegin | ( | $ | keylen, |
$ | datalen | ||
) | [protected] |
MWException |
$keylen | |
$datalen |
Definition at line 393 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 376 of file Cdb_PHP.php.
References array(), and posplus().
Referenced by set().
MWException |
Reimplemented from CdbWriter.
Definition at line 333 of file Cdb_PHP.php.
References finish(), throwException(), and wfIsWindows().
Referenced by __destruct().
CdbWriter_PHP::finish | ( | ) | [protected] |
MWException |
Definition at line 407 of file Cdb_PHP.php.
References $count, $pos, array(), as, posplus(), throwException(), CdbFunctions\unsignedMod(), CdbFunctions\unsignedShiftRight(), and write().
Referenced by close().
CdbWriter_PHP::posplus | ( | $ | len | ) | [protected] |
MWException |
$len |
Definition at line 362 of file Cdb_PHP.php.
References throwException().
CdbWriter_PHP::set | ( | $ | key, |
$ | value | ||
) |
$key | |
$value |
Reimplemented from CdbWriter.
Definition at line 319 of file Cdb_PHP.php.
References $key, $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 486 of file Cdb_PHP.php.
Referenced by __construct(), addbegin(), close(), finish(), posplus(), and write().
CdbWriter_PHP::write | ( | $ | buf | ) | [protected] |
MWException |
$buf |
Definition at line 351 of file Cdb_PHP.php.
References throwException().
Referenced by addbegin(), finish(), and set().
CdbWriter_PHP::$handle |
Definition at line 284 of file Cdb_PHP.php.
CdbWriter_PHP::$hplist |
Definition at line 286 of file Cdb_PHP.php.
CdbWriter_PHP::$numentries |
Definition at line 287 of file Cdb_PHP.php.
CdbWriter_PHP::$pos |
Definition at line 287 of file Cdb_PHP.php.
Referenced by finish().
CdbWriter_PHP::$realFileName |
Definition at line 284 of file Cdb_PHP.php.
CdbWriter_PHP::$tmpFileName |
Definition at line 284 of file Cdb_PHP.php.