PHP 클래스 Phalcon\Translate\Adapter\Database

상속: extends Phalcon\Translate\Adapter\Base, implements Phalcon\Translate\AdapterInterface, implements ArrayAccess
파일 보기 프로젝트 열기: phalcon/incubator

보호된 프로퍼티들

프로퍼티 타입 설명
$options array
$stmtExists array Statement for Exist
$stmtSelect array Statement for Read
$useIcuMessageFormatter boolean Use ICU MessageFormatter to parse message

공개 메소드들

메소드 설명
_ ( $translateKey, $placeholders = null ) @codingStandardsIgnoreStart
__construct ( array $options ) Class constructor.
add ( string $translateKey, string $message ) : boolean Adds a translation for given key (No existence check!)
delete ( string $translateKey ) : boolean Deletes a translation for given key (No existence check!)
exists ( string $translateKey ) : boolean
offsetExists ( string $translateKey ) : string
offsetGet ( string $translateKey ) : string
offsetSet ( string $translateKey, string $message ) : string
offsetUnset ( string $translateKey ) : string
query ( string $translateKey, array $placeholders = null ) : string
set ( string $translateKey, string $message ) : boolean Sets (insert or updates) a translation for given key
update ( string $translateKey, string $message ) : boolean Update a translation for given key (No existence check!)

메소드 상세

_() 공개 메소드

@codingStandardsIgnoreStart
public _ ( $translateKey, $placeholders = null )

__construct() 공개 메소드

Class constructor.
public __construct ( array $options )
$options array

add() 공개 메소드

Adds a translation for given key (No existence check!)
public add ( string $translateKey, string $message ) : boolean
$translateKey string
$message string
리턴 boolean

delete() 공개 메소드

Deletes a translation for given key (No existence check!)
public delete ( string $translateKey ) : boolean
$translateKey string
리턴 boolean

exists() 공개 메소드

public exists ( string $translateKey ) : boolean
$translateKey string
리턴 boolean

offsetExists() 공개 메소드

public offsetExists ( string $translateKey ) : string
$translateKey string
리턴 string

offsetGet() 공개 메소드

public offsetGet ( string $translateKey ) : string
$translateKey string
리턴 string

offsetSet() 공개 메소드

public offsetSet ( string $translateKey, string $message ) : string
$translateKey string
$message string
리턴 string

offsetUnset() 공개 메소드

public offsetUnset ( string $translateKey ) : string
$translateKey string
리턴 string

query() 공개 메소드

public query ( string $translateKey, array $placeholders = null ) : string
$translateKey string
$placeholders array
리턴 string

set() 공개 메소드

Sets (insert or updates) a translation for given key
public set ( string $translateKey, string $message ) : boolean
$translateKey string
$message string
리턴 boolean

update() 공개 메소드

Update a translation for given key (No existence check!)
public update ( string $translateKey, string $message ) : boolean
$translateKey string
$message string
리턴 boolean

프로퍼티 상세

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

protected array $options
리턴 array

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

Statement for Exist
protected array $stmtExists
리턴 array

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

Statement for Read
protected array $stmtSelect
리턴 array

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

Use ICU MessageFormatter to parse message
protected bool $useIcuMessageFormatter
리턴 boolean