MediaWiki  1.23.13
CdbWriterDBA Class Reference

Writer class which uses the DBA extension. More...

Inheritance diagram for CdbWriterDBA:
Collaboration diagram for CdbWriterDBA:

Public Member Functions

 __construct ( $fileName)
 Create the object and open the file. More...
 
 close ()
 Close the writer object. More...
 
 set ( $key, $value)
 Set a key to a given value. More...
 
- Public Member Functions inherited from CdbWriter
 __destruct ()
 If the object goes out of scope, close it for sanity. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from CdbWriter
static open ( $fileName)
 Open a writer and return a subclass instance. More...
 
- Protected Member Functions inherited from CdbWriter
 isWindows ()
 Are we running on Windows? More...
 
- Protected Attributes inherited from CdbWriter
 $handle
 The file handle. More...
 
string $realFileName
 File we'll be writing to when we're done. More...
 
string $tmpFileName
 File we write to temporarily until we're done. More...
 

Detailed Description

Writer class which uses the DBA extension.

Definition at line 49 of file CdbDBA.php.

Constructor & Destructor Documentation

◆ __construct()

CdbWriterDBA::__construct (   $fileName)

Create the object and open the file.

Parameters
$fileNamestring

Reimplemented from CdbWriter.

Definition at line 50 of file CdbDBA.php.

Member Function Documentation

◆ close()

CdbWriterDBA::close ( )

Close the writer object.

You should call this function before the object goes out of scope, to write out the final hashtables.

Reimplemented from CdbWriter.

Definition at line 63 of file CdbDBA.php.

References CdbWriter\isWindows().

◆ set()

CdbWriterDBA::set (   $key,
  $value 
)

Set a key to a given value.

The value will be converted to string.

Parameters
$keystring
$valuestring

Reimplemented from CdbWriter.

Definition at line 59 of file CdbDBA.php.

References $value.


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