Ejemplo n.º 1
0
 /**
  * @param $className
  *
  * @return org_glizy_components_Component|null
  */
 function &_getParentByClass($className)
 {
     if (strtolower($this->getClassName()) == $className) {
         return $this;
     } else {
         if (is_object($this->_parent) && method_exists($this->_parent, '_getParentByClass')) {
             return $this->_parent->_getParentByClass($className);
         } else {
             $null = NULL;
             return $null;
         }
     }
 }