API > eden > language.php
View Source

class Eden_Language

Translator utility

  • Extends: Eden_Class
  • Implements: ArrayAccess, Iterator

Public Methods

public function current()

Returns the current item For Iterator interface

Returns void

public function get($key)

Returns the translated key. if the key is not set it will set the key to the value of the key

Arguments

  1. string

Returns string

public function getLanguage()

Return the language set

Returns array

public function key()

Returns th current position For Iterator interface

Returns void

public function next()

Increases the position For Iterator interface

Returns void

public function offsetExists($offset)

isset using the ArrayAccess interface

Arguments

  1. number

Returns bool

public function offsetGet($offset)

returns data using the ArrayAccess interface

Arguments

  1. number

Returns bool

public function offsetSet($offset, $value)

Sets data using the ArrayAccess interface

Arguments

  1. number
  2. mixed

Returns void

public function offsetUnset($offset)

unsets using the ArrayAccess interface

Arguments

  1. number

Returns bool

public function rewind()

Rewinds the position For Iterator interface

Returns void

public function save($file = NULL)

Saves the language to a file

Arguments

  1. string|null

Returns this

public function translate($key, $value)

Sets the translated value to the specified key

Arguments

  1. string
  2. string

Returns this

public function valid()

Validates whether if the index is set For Iterator interface

Returns void

class Eden_Language_Error

Language Errors


© 2012 Openovate Labs. All rights reserved.