コード例 #1
0
ファイル: lazy_object.php プロジェクト: bermi/akelos
 public function setExtendedBy(&$ExtendedClass)
 {
     $class_name = get_class($ExtendedClass);
     $this->__extendedPoints[$class_name] = $ExtendedClass;
     AkLazyObject::extenssionRegistry($ExtendedClass, $class_name, true);
 }
コード例 #2
0
ファイル: action_controller.php プロジェクト: bermi/akelos
 public function __get($attribute)
 {
     $matches = array();
     if (preg_match('/^(.+)_helper$/', $attribute, $matches)) {
         $this->getHelperLoader()->instantiateHelperAsHandlerAttribute($matches[1], $matches[0]);
         if (isset($this->{$attribute})) {
             return $this->{$attribute};
         }
     }
     if (!isset($this->_dynamic_attributes[$attribute])) {
         return parent::__get($attribute);
     }
     return $this->_dynamic_attributes[$attribute];
 }