Class Zend_Log_Adapter_Db

Description

Implements interfaces:

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


	
			
Variable Summary
 Zend_Db_Adapter $_dbAdapter
 array $_options
 string $_tableName
Method Summary
 Zend_Log_Adapter_Db __construct (Zend_Db_Adapter_Abstract $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 46)

Database adapter instance.

  • access: protected
array $_options = array('fieldMessage' => 'message',
'fieldLevel' => 'level')
(line 60)

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

  • access: protected
string $_tableName = null (line 53)

Name of the log table in the database.

  • access: protected
Methods
Constructor __construct (line 70)

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

  • access: public
Zend_Log_Adapter_Db __construct (Zend_Db_Adapter_Abstract $dbAdapter, [string $tableName = null])
  • Zend_Db_Adapter $dbAdapter
  • string $tableName
close (line 113)

Does nothing.

  • access: public
bool close ()
open (line 102)

Does nothing.

  • access: public
bool open ()
setOption (line 88)

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
write (line 126)

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

Documentation generated on Tue, 18 Apr 2006 11:54:44 -0700 by phpDocumentor 1.3.0RC3