PHP 클래스 Airship\Engine\LedgerStorage\DBStore

상속: implements LedgerStorageInterface
파일 보기 프로젝트 열기: paragonie/airship

보호된 프로퍼티들

프로퍼티 타입 설명
$columns string[]
$db DBInterface
$table string

공개 메소드들

메소드 설명
__construct ( DBInterface $db = null, string $table = self::DEFAULT_TABLE ) DBStore constructor.
setColumn ( string $key, string $value ) : self Change a column name.
store ( string $level, string $message, string $context ) : mixed Store a log message -- used by Ledger

메소드 상세

__construct() 공개 메소드

DBStore constructor.
public __construct ( DBInterface $db = null, string $table = self::DEFAULT_TABLE )
$db DBInterface
$table string

setColumn() 공개 메소드

Change a column name.
public setColumn ( string $key, string $value ) : self
$key string
$value string
리턴 self ($this)

store() 공개 메소드

Store a log message -- used by Ledger
public store ( string $level, string $message, string $context ) : mixed
$level string
$message string
$context string (JSON encoded)
리턴 mixed

프로퍼티 상세

$columns 보호되어 있는 프로퍼티

protected string[] $columns
리턴 string[]

$db 보호되어 있는 프로퍼티

protected DBInterface $db
리턴 DBInterface

$table 보호되어 있는 프로퍼티

protected string $table
리턴 string