Beispiel #1
0
 /**
  */
 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);
     }
 }
Beispiel #2
0
 /**
  */
 public function __get($name)
 {
     switch ($name) {
         case 'path':
             return $this->export->path;
         case 'url':
             return $this->export->url;
         default:
             return parent::__get($name);
     }
 }
Beispiel #3
0
 /**
  */
 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);
     }
 }
Beispiel #4
0
 /**
  */
 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);
     }
 }
Beispiel #5
0
 /**
  */
 public function get_property($name)
 {
     switch ($name) {
         case 'name':
         case 'ext':
         case 'path':
         case 'url':
             return $this->{$name};
         default:
             return parent::get_property($name);
     }
 }
Beispiel #6
0
 /**
  */
 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;
 }
Beispiel #7
0
 /**
  */
 public function __unset($name)
 {
     switch ($name) {
         case 'primary':
         case 'secondary':
             return $this->{$name} = null;
         default:
             return parent::__unset($name);
     }
 }
Beispiel #8
0
 /**
  */
 public function __get($name)
 {
     switch ($name) {
         case 'name':
             return $this->name;
         default:
             return parent::__get($name);
     }
 }
Beispiel #9
0
 /**
  */
 public function __unset($name)
 {
     switch ($name) {
         case 'alias':
         case 'ready':
         case 'function':
             return $this->{$name} = null;
         default:
             return parent::__unset($name);
     }
 }
Beispiel #10
0
 /**
  */
 public function __isset($name)
 {
     switch ($name) {
         case 'name':
         case 'ext':
         case 'path':
         case 'url':
             return isset($this->{$name});
         default:
             return parent::__isset($name);
     }
 }