PHP Class Phalcon\Translate\Adapter\Database

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

Protected Properties

Свойство Type Description
$options array
$stmtExists array Statement for Exist
$stmtSelect array Statement for Read
$useIcuMessageFormatter boolean Use ICU MessageFormatter to parse message

Méthodes publiques

Méthode Description
_ ( $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!)

Method Details

_() public méthode

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

__construct() public méthode

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

add() public méthode

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

delete() public méthode

Deletes a translation for given key (No existence check!)
public delete ( string $translateKey ) : boolean
$translateKey string
Résultat boolean

exists() public méthode

public exists ( string $translateKey ) : boolean
$translateKey string
Résultat boolean

offsetExists() public méthode

public offsetExists ( string $translateKey ) : string
$translateKey string
Résultat string

offsetGet() public méthode

public offsetGet ( string $translateKey ) : string
$translateKey string
Résultat string

offsetSet() public méthode

public offsetSet ( string $translateKey, string $message ) : string
$translateKey string
$message string
Résultat string

offsetUnset() public méthode

public offsetUnset ( string $translateKey ) : string
$translateKey string
Résultat string

query() public méthode

public query ( string $translateKey, array $placeholders = null ) : string
$translateKey string
$placeholders array
Résultat string

set() public méthode

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

update() public méthode

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

Property Details

$options protected_oe property

protected array $options
Résultat array

$stmtExists protected_oe property

Statement for Exist
protected array $stmtExists
Résultat array

$stmtSelect protected_oe property

Statement for Read
protected array $stmtSelect
Résultat array

$useIcuMessageFormatter protected_oe property

Use ICU MessageFormatter to parse message
protected bool $useIcuMessageFormatter
Résultat boolean