Example #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 'textShadowColor':
             // Use inverted font color if false
             if ($this->properties['textShadowColor'] === false) {
                 $this->properties['textShadowColor'] = $this->properties['color']->invert();
             }
             return $this->properties['textShadowColor'];
         case 'path':
             if ($this->pathChecked === false) {
                 // Enforce call of path check
                 $this->__set('path', $this->properties['path']);
             }
             // No break to use parent return
         // No break to use parent return
         default:
             return parent::__get($propertyName);
     }
 }
Example #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 'font':
             // Clone font configuration when requested for this element
             if (!$this->fontCloned) {
                 $this->properties['font'] = clone $this->properties['font'];
                 $this->properties['fontCloned'] = true;
             }
             return $this->properties['font'];
         default:
             return parent::__get($propertyName);
     }
 }