Documentation

Table Of Contents

Previous topic

< Class Phalcon\Translate\Adapter\Csv

Next topic

Class Phalcon\Translate\Exception >

This Page

Class Phalcon\Translate\Adapter\NativeArray

extends abstract class Phalcon\Translate\Adapter

implements Phalcon\Translate\AdapterInterface, ArrayAccess

Allows to define translation lists using PHP arrays

Methods

public __construct (unknown $options)

Phalcon\Translate\Adapter\NativeArray constructor

public string query (unknown $index, [unknown $placeholders])

Returns the translation related to the given key

public bool exists (unknown $index)

Check whether is defined a translation key in the internal array

public string t (unknown $translateKey, [unknown $placeholders]) inherited from Phalcon\Translate\Adapter

Returns the translation string of the given key

public string _ (unknown $translateKey, [unknown $placeholders]) inherited from Phalcon\Translate\Adapter

Returns the translation string of the given key (alias of method ‘t’)

public offsetSet (unknown $offset, unknown $value) inherited from Phalcon\Translate\Adapter

Sets a translation value

public boolean offsetExists (unknown $translateKey) inherited from Phalcon\Translate\Adapter

Check whether a translation key exists

public offsetUnset (unknown $offset) inherited from Phalcon\Translate\Adapter

Unsets a translation from the dictionary

public string offsetGet (unknown $translateKey) inherited from Phalcon\Translate\Adapter

Returns the translation related to the given key

Follow along: