示例#1
0
 public function __get($property)
 {
     switch ($property) {
         case 'width':
         case 'height':
         case 'aspectRatio':
             $method = 'get' . ucfirst($property);
             return $this->{$method}();
     }
     return parent::__get($property);
 }
示例#2
0
 public function __get($property)
 {
     if ($this->_state == 'deleted') {
         notice('A deleted Record has no properties');
         return;
     } else {
         return parent::__get($property);
     }
 }