class Dictionary
Dictionary - a class for working with dictionaries (key-value lists, unique key).
class Dictionary {
/** * Instantiate a dictionary by name * @param string $name * @return Dictionary */static public function getInstance($name)
/** * Check if the key exists in the dictionary * @param string $key * @return boolean */public function isValidKey($key)
/** * Get value by key * @param string $key * @return string */public function getValue($key)
/** * Get dictionary data* @return array */
public function getData()
/** * Add a record * @param string $key * @param string $value * @return boolean */public function addRecord($key , $value)
/** * Delete record by key * @param string $key * @return boolean */public function removeRecord($key)
/** * Save changes * @return boolean */public function saveChanges()
/** * Get dictionary as JavaScript code representation * @param boolean $addAll — add value 'All' with a blank key,* is used in drop-down lists * @return string */
public function __toJs($addAll = false)
}
comments powered by Disqus