Beispiel #1
0
 /**
  * __set 
  * 
  * @param mixed $propertyName 
  * @param mixed $propertyValue 
  * @throws ezcBaseValueException
  *          If a submitted parameter was out of range or type.
  * @throws ezcBasePropertyNotFoundException
  *          If a the value for the property options is not an instance of
  * @return void
  */
 public function __set($propertyName, $propertyValue)
 {
     switch ($propertyName) {
         case 'maxHeight':
             if (!is_numeric($propertyValue) || $propertyValue < 0 || $propertyValue > 1) {
                 throw new ezcBaseValueException($propertyName, $propertyValue, '0 <= float <= 1');
             }
             $this->properties['maxHeight'] = (double) $propertyValue;
             break;
         default:
             parent::__set($propertyName, $propertyValue);
             break;
     }
 }
 /**
  * __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);
     }
 }
 /**
  * __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);
     }
 }
Beispiel #4
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 'axisLabelRenderer':
             return $this->axisLabelRenderer;
         default:
             return parent::__get($propertyName);
     }
 }