MediaWiki  REL1_22
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 283 of file Cdb_PHP.php.


Constructor & Destructor Documentation

CdbWriter_PHP::__construct ( fileName)
Parameters:
$fileNamestring

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().


Member Function Documentation

CdbWriter_PHP::addbegin ( keylen,
datalen 
) [protected]
Exceptions:
MWException
Parameters:
$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]
Parameters:
$keylen
$datalen
$h

Definition at line 376 of file Cdb_PHP.php.

References array(), and posplus().

Referenced by set().

Exceptions:
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]
CdbWriter_PHP::posplus ( len) [protected]
Exceptions:
MWException
Parameters:
$len

Definition at line 362 of file Cdb_PHP.php.

References throwException().

Referenced by addend(), and finish().

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

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.

Parameters:
$msgstring
Exceptions:
MWException

Definition at line 486 of file Cdb_PHP.php.

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

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

Definition at line 351 of file Cdb_PHP.php.

References throwException().

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


Member Data Documentation

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.


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