MediaWiki  REL1_19
CdbWriter_PHP Class Reference

CDB writer class. More...

Inheritance diagram for CdbWriter_PHP:
Collaboration diagram for CdbWriter_PHP:

List of all members.

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)

Detailed Description

CDB writer class.

Definition at line 266 of file Cdb_PHP.php.


Constructor & Destructor Documentation

CdbWriter_PHP::__construct ( fileName)
Parameters:
$fileNamestring

Reimplemented from CdbWriter.

Definition at line 275 of file Cdb_PHP.php.

References throwException().

Here is the call graph for this function:

Definition at line 291 of file Cdb_PHP.php.

References close().

Here is the call graph for this function:


Member Function Documentation

CdbWriter_PHP::addbegin ( keylen,
datalen 
) [protected]
Exceptions:
MWException
Parameters:
$keylen
$datalen

Definition at line 376 of file Cdb_PHP.php.

References throwException(), and write().

Referenced by set().

Here is the call graph for this function:

Here is the caller graph for this function:

CdbWriter_PHP::addend ( keylen,
datalen,
h 
) [protected]
Parameters:
$keylen
$datalen
$h

Definition at line 359 of file Cdb_PHP.php.

References posplus().

Referenced by set().

Here is the call graph for this function:

Here is the caller graph for this function:

Exceptions:
MWException

Reimplemented from CdbWriter.

Definition at line 316 of file Cdb_PHP.php.

References finish(), throwException(), and wfIsWindows().

Referenced by __destruct().

Here is the call graph for this function:

Here is the caller graph for this function:

CdbWriter_PHP::finish ( ) [protected]
Exceptions:
MWException

Definition at line 390 of file Cdb_PHP.php.

References $count, $pos, posplus(), throwException(), CdbFunctions\unsignedMod(), CdbFunctions\unsignedShiftRight(), and write().

Referenced by close().

Here is the call graph for this function:

Here is the caller graph for this function:

CdbWriter_PHP::posplus ( len) [protected]
Exceptions:
MWException
Parameters:
$len

Definition at line 345 of file Cdb_PHP.php.

References throwException().

Referenced by addend(), and finish().

Here is the call graph for this function:

Here is the caller graph for this function:

CdbWriter_PHP::set ( key,
value 
)
Parameters:
$key
$value
Returns:

Reimplemented from CdbWriter.

Definition at line 302 of file Cdb_PHP.php.

References addbegin(), addend(), CdbFunctions\hash(), and write().

Here is the call graph for this function:

CdbWriter_PHP::throwException ( msg) [protected]

Clean up the temp file and throw an exception.

Parameters:
$msgstring
Exceptions:
MWException

Definition at line 467 of file Cdb_PHP.php.

Referenced by __construct(), addbegin(), close(), finish(), posplus(), and write().

Here is the caller graph for this function:

CdbWriter_PHP::write ( buf) [protected]
Exceptions:
MWException
Parameters:
$buf

Definition at line 334 of file Cdb_PHP.php.

References throwException().

Referenced by addbegin(), finish(), and set().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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.


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