PHP Class Phalcon\Logger\Adapter\Database

Inheritance: extends Phalcon\Logger\Adapter, implements Phalcon\Logger\AdapterInterface
Afficher le fichier Open project: phalcon/incubator

Protected Properties

Свойство Type Description
$db Phalcon\Db\AdapterInterface
$name string Name
$options array Adapter options

Méthodes publiques

Méthode Description
__construct ( string $name = 'phalcon', array $options = [] ) Class constructor.
begin ( )
close ( ) : boolean
commit ( ) Commit transaction
getFormatter ( ) : Phalcon\Logger\FormatterInterface
logInternal ( string $message, integer $type, integer $time, array $context = [] ) : boolean Writes the log to the file itself
rollback ( ) Rollback transaction (happens automatically if commit never reached)
setDb ( Phalcon\Logger\AdapterInterface $db ) Sets database connection

Method Details

__construct() public méthode

Class constructor.
public __construct ( string $name = 'phalcon', array $options = [] )
$name string
$options array

begin() public méthode

public begin ( )

close() public méthode

public close ( ) : boolean
Résultat boolean

commit() public méthode

Commit transaction
public commit ( )

getFormatter() public méthode

public getFormatter ( ) : Phalcon\Logger\FormatterInterface
Résultat Phalcon\Logger\FormatterInterface

logInternal() public méthode

Writes the log to the file itself
public logInternal ( string $message, integer $type, integer $time, array $context = [] ) : boolean
$message string
$type integer
$time integer
$context array
Résultat boolean

rollback() public méthode

Rollback transaction (happens automatically if commit never reached)
public rollback ( )

setDb() public méthode

Sets database connection
public setDb ( Phalcon\Logger\AdapterInterface $db )
$db Phalcon\Logger\AdapterInterface

Property Details

$db protected_oe property

protected AdapterInterface,Phalcon\Db $db
Résultat Phalcon\Db\AdapterInterface

$name protected_oe property

Name
protected string $name
Résultat string

$options protected_oe property

Adapter options
protected array $options
Résultat array