API Documentation

Log/Writer/Db.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Log
subpackage
Writer
version
$Id: Db.php 22514 2010-07-01 14:11:18Z ramon $
Classes
Zend_Log_Writer_Db

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Log_Writer_Db

Extends from
Zend_Log_Writer_Abstract
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Log
subpackage
Writer
version
$Id: Db.php 22514 2010-07-01 14:11:18Z ramon $
Properties
$_db
$_table
$_columnMap
Methods
__construct
factory
setFormatter
shutdown
_write

Description

Properties

$_columnMap

null|array $_columnMap = ''

Relates database columns names to log data field keys.

Details

$_columnMap
null|array
visibility
private
default
final
false
static
false

$_db

Zend_Db_Adapter $_db = ''

Database adapter instance

Details

$_db
Zend_Db_Adapter
visibility
private
default
final
false
static
false

$_table

string $_table = ''

Name of the log table in the database

Details

$_table
string
visibility
private
default
final
false
static
false

Methods

__construct

__construct( Zend_Db_Adapter $db, string $table, array $columnMap = null ) :

Class constructor

Arguments
$db
Zend_Db_Adapter
Database adapter instance
$table
string
Log table in database
$columnMap
array
Details
visibility
public
final
false
static
false

_write

_write( array $event ) : void

Write a message to the log.

Arguments
$event
array
event data
Details
visibility
protected
final
false
static
false

factory

factory( array|Zend_Config $config ) : Zend_Log_Writer_Db

Create a new instance of Zend_Log_Writer_Db

Arguments
$config
arrayZend_Config
Details
visibility
public
final
false
static
true
throws

setFormatter

setFormatter(  $formatter ) :

Formatting is not possible on this writer

Arguments
$formatter
Details
visibility
public
final
false
static
false

shutdown

shutdown( ) : void

Remove reference to database adapter

Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.