/** */ public function get_property($name) { switch ($name) { case 'path': return $this->export->get_property('path'); case 'url': return $this->export->get_property('url'); default: return parent::get_property($name); } }
/** */ public function __get($name) { switch ($name) { case 'path': return $this->export->path; case 'url': return $this->export->url; default: return parent::__get($name); } }
/** */ protected function set_property($name, $value) { switch ($name) { case 'primary': case 'secondary': // set it $this->{$name} = $value; // chain it return $this; default: return parent::set_property($name, $value); } }
/** */ public function __unset($name) { switch ($name) { case 'priority': if ($this->priority !== null) { throw new Exception('Cannot unset priority once set'); } default: return parent::__unset($name); } }
/** */ public function get_property($name) { switch ($name) { case 'name': case 'ext': case 'path': case 'url': return $this->{$name}; default: return parent::get_property($name); } }
/** */ protected function set_property($name, $value) { switch ($name) { case 'alias': case 'ready': $this->{$name} = (bool) $value; break; case 'function': $this->function = is_bool($value) ? $value : trim($value); break; default: return parent::set_property($name, $value); } // chain it return $this; }
/** */ public function __unset($name) { switch ($name) { case 'primary': case 'secondary': return $this->{$name} = null; default: return parent::__unset($name); } }
/** */ public function __get($name) { switch ($name) { case 'name': return $this->name; default: return parent::__get($name); } }
/** */ public function __unset($name) { switch ($name) { case 'alias': case 'ready': case 'function': return $this->{$name} = null; default: return parent::__unset($name); } }
/** */ public function __isset($name) { switch ($name) { case 'name': case 'ext': case 'path': case 'url': return isset($this->{$name}); default: return parent::__isset($name); } }