W3cubDocs

/Phalcon 2

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 (array $options)

Phalcon\Translate\Adapter\NativeArray constructor

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

Returns the translation related to the given key

public bool exists (string $index)

Check whether is defined a translation key in the internal array

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

Returns the translation string of the given key

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

Sets a translation value

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

Check whether a translation key exists

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

Unsets a translation from the dictionary

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

Returns the translation related to the given key

© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Translate_Adapter_NativeArray.html