_array_keys) && empty($this->_data[$key])) return array(); if (empty($this->_data[$key])) return NULL; else return $this->_data[$key]; } public function __set($key,$value) { if (in_array($key,$this->_array_keys) && ! is_array($value)) throw new Kohana_Exception('Key :key must be an array',array(':key'=>$key)); $this->_data[$key] = $value; } public function secure() { static $secure = NULL; if (! $secure AND Request::current()) $secure = Request::current()->secure() ? 'https://' : 'http://'; return $secure; } } ?>