Property | Type | Description | |
---|---|---|---|
$db | Phalcon\Db\AdapterInterface | ||
$name | string | Name | |
$options | array | Adapter options |
Method | 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 |
public __construct ( string $name = 'phalcon', array $options = [] ) | ||
$name | string | |
$options | array |
public getFormatter ( ) : Phalcon\Logger\FormatterInterface | ||
return | Phalcon\Logger\FormatterInterface |
public rollback ( ) |
public setDb ( Phalcon\Logger\AdapterInterface $db ) | ||
$db | Phalcon\Logger\AdapterInterface |
protected AdapterInterface,Phalcon\Db $db | ||
return | Phalcon\Db\AdapterInterface |