context); if (array_key_exists($key, $context)) { return $context[$key]; } else { return $default; } } public function set($key, $value) { $context = unserialize($this->context); $context[$key] = $value; $this->context = serialize($context); } public function save() { if (!empty($this->changed)) { $this->updated = time(); } return parent::save(); } }