owner_id); } catch (Exception $e) { return null; } } else { return parent::__get($column); } } public function get($key, $default=null) { $context = unserialize($this->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(); } }