PHP Class Pop\Log\Writer\Db

Author: Nick Sagona, III ([email protected])
Inheritance: implements Pop\Log\Writer\WriterInterface
Mostra file Open project: nicksagona/PopPHP

Protected Properties

Property Type Description
$table Pop\Db\Record Table record object that represents the log table in the database

Public Methods

Method Description
__construct ( Record $table ) : Db Constructor
writeLog ( array $logEntry, array $options = [] ) : Db Method to write to the log

Method Details

__construct() public method

Instantiate the DB writer object.
public __construct ( Record $table ) : Db
$table Pop\Db\Record
return Db

writeLog() public method

Method to write to the log
public writeLog ( array $logEntry, array $options = [] ) : Db
$logEntry array
$options array
return Db

Property Details

$table protected_oe property

Table record object that represents the log table in the database
protected Record,Pop\Db $table
return Pop\Db\Record