Docs For Class Zend_Log_Adapter_Db

## Class Zend_Log_Adapter_Db

Description

Implements interfaces:

- Zend_Log_Adapter_Interface

- license: New BSD License
- copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Log/Adapter/Db.php (line 40)

Variable Summary
Zend_Db_Adapter $_dbAdapter
array $_options
string $_tableName
Method Summary
Zend_Log_Adapter_Db __construct ( $dbAdapter, [string $tableName = null])
bool close ()
bool open ()
void setOption (string $optionKey, string $optionValue)
bool write (array $fields)
Variables
Zend_Db_Adapter $_dbAdapter = null (line 48)

Database adapter instance.

- access: protected

array $_options = array('fieldMessage' => 'message',
'fieldLevel' => 'level') (line 62)

Options to be set by setOption(). Sets the field names in the database table.

- access: protected

string $_tableName = null (line 55)

Name of the log table in the database.

- access: protected

Methods
Constructor __construct (line 72)

Class constructor. Pass it a database adapter and the table name of the log table.

- access: public

Zend_Log_Adapter_Db __construct ( $dbAdapter, [string $tableName = null])

- Zend_Db_Adapter $dbAdapter
- string $tableName

close (line 115)

Does nothing.

- access: public

bool close ()

Implementation of:

Zend_Log_Adapter_Interface::close()
  Close the log storage opened by the log adapter. If the adapter supports buffering, all log data must be sent to the log before the storage is closed.

open (line 104)

Does nothing.

- access: public

bool open ()

Implementation of:

Zend_Log_Adapter_Interface::open()
  Open the storage resource. If the adapter supports buffering, this may not actually open anything until it is time to flush the buffer.

setOption (line 90)

Sets either 'fieldMessage' to change the field name where messages are logged, or 'fieldLevel' to change the field name where the log levels are logged.

- access: public

void setOption (string $optionKey, string $optionValue)

- string $optionKey
- string $optionValue

Implementation of:

Zend_Log_Adapter_Interface::setOption()
  Sets an option specific to the implementation of the log adapter.

write (line 128)

Writes an array of key/value pairs to the database, where the keys are the database field names and values are what to put in those fields.

- access: public

bool write (array $fields)

- array $fields

Implementation of:

Zend_Log_Adapter_Interface::write()
  Write a message to the log. If the adapter supports buffering, the message may or may not actually go into storage until the buffer is flushed.

Documentation generated on Sun, 29 Oct 2006 21:27:06 -0600 by phpDocumentor 1.3.0RC6