Exemple #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);
     }
 }
Exemple #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);
     }
 }
Exemple #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);
     }
 }
 /**
  */
 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);
     }
 }
Exemple #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);
     }
 }
Exemple #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;
 }
Exemple #7
0
 /**
  */
 public function __unset($name)
 {
     switch ($name) {
         case 'primary':
         case 'secondary':
             return $this->{$name} = null;
         default:
             return parent::__unset($name);
     }
 }
Exemple #8
0
 /**
  */
 public function __get($name)
 {
     switch ($name) {
         case 'name':
             return $this->name;
         default:
             return parent::__get($name);
     }
 }
Exemple #9
0
 /**
  */
 public function __unset($name)
 {
     switch ($name) {
         case 'alias':
         case 'ready':
         case 'function':
             return $this->{$name} = null;
         default:
             return parent::__unset($name);
     }
 }
Exemple #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);
     }
 }