コード例 #1
0
 /**
  * __get 
  * 
  * @param mixed $propertyName 
  * @throws ezcBasePropertyNotFoundException
  *          If a the value for the property options is not an instance of
  * @return mixed
  * @ignore
  */
 public function __get($propertyName)
 {
     switch ($propertyName) {
         case 'labels':
             return $this->labels;
         default:
             return parent::__get($propertyName);
     }
 }
コード例 #2
0
 /**
  * __get 
  * 
  * @param mixed $propertyName 
  * @throws ezcBasePropertyNotFoundException
  *          If a the value for the property options is not an instance of
  * @return mixed
  * @ignore
  */
 public function __get($propertyName)
 {
     switch ($propertyName) {
         case 'color':
             // Use color as an alias to set background color for background
             return $this->properties['background'];
         default:
             return parent::__get($propertyName);
     }
 }
コード例 #3
0
ファイル: axis.php プロジェクト: jose-martins/glpi
 /**
  * __get 
  * 
  * @param mixed $propertyName 
  * @throws ezcBasePropertyNotFoundException
  *          If a the value for the property options is not an instance of
  * @return mixed
  * @ignore
  */
 public function __get($propertyName)
 {
     switch ($propertyName) {
         case 'axisLabelRenderer':
             return $this->axisLabelRenderer;
         default:
             return parent::__get($propertyName);
     }
 }