MediaWiki
REL1_19
|
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 266 of file Cdb_PHP.php.
CdbWriter_PHP::__construct | ( | $ | fileName | ) |
$fileName | string |
Reimplemented from CdbWriter.
Definition at line 275 of file Cdb_PHP.php.
References throwException().
Definition at line 291 of file Cdb_PHP.php.
References close().
CdbWriter_PHP::addbegin | ( | $ | keylen, |
$ | datalen | ||
) | [protected] |
MWException |
$keylen | |
$datalen |
Definition at line 376 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 359 of file Cdb_PHP.php.
References posplus().
Referenced by set().
MWException |
Reimplemented from CdbWriter.
Definition at line 316 of file Cdb_PHP.php.
References finish(), throwException(), and wfIsWindows().
Referenced by __destruct().
CdbWriter_PHP::finish | ( | ) | [protected] |
MWException |
Definition at line 390 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 345 of file Cdb_PHP.php.
References throwException().
Referenced by addend(), and finish().
CdbWriter_PHP::set | ( | $ | key, |
$ | value | ||
) |
$key | |
$value |
Reimplemented from CdbWriter.
Definition at line 302 of file Cdb_PHP.php.
References 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 467 of file Cdb_PHP.php.
Referenced by __construct(), addbegin(), close(), finish(), posplus(), and write().
CdbWriter_PHP::write | ( | $ | buf | ) | [protected] |
MWException |
$buf |
Definition at line 334 of file Cdb_PHP.php.
References throwException().
Referenced by addbegin(), finish(), and set().
CdbWriter_PHP::$handle |
Definition at line 267 of file Cdb_PHP.php.
CdbWriter_PHP::$hplist |
Definition at line 269 of file Cdb_PHP.php.
CdbWriter_PHP::$numentries |
Definition at line 270 of file Cdb_PHP.php.
CdbWriter_PHP::$pos |
Definition at line 270 of file Cdb_PHP.php.
Referenced by finish().
CdbWriter_PHP::$realFileName |
Definition at line 267 of file Cdb_PHP.php.
CdbWriter_PHP::$tmpFileName |
Definition at line 267 of file Cdb_PHP.php.