_data = $data; } /** * Get the value of a key element in the array data set * * @param string $key The name of the array key * @access public */ public function get($key) { return $this->_data[$key]; } /** * Get the value of a key element in the array data set and protect the output value * * @param string $key The name of the array key * @access public */ public function getProtected($key) { return osc_output_string_protected($this->_data[$key]); } /** * Get the integer value of a key element in the array data set * * @param string $key The name of the array key * @access public */ public function getInt($key) { return (int)$this->_data[$key]; } /** * Get the whole array data set * * @access public */ public function getAll() { return $this->_data; } /** * Set a value in the array data set * * @param string $key The name of the array key * @param string $value The value of the array key * @access public */ public function set($key, $value) { $this->_data[$key] = $value; } /** * Checks the existance of a key in the array data set * * @param string $key The name of the array key * @access public */ public function exists($key) { return isset($this->_data[$key]); } } ?>