Пример #1
0
 /**
  * Get the parent view of this view or NULL if no parent view exists.
  * 
  * @return CompiledTemplate
  */
 protected final function getParent()
 {
     if ($this->parent === false) {
         if (NULL === ($file = $this->getExtended())) {
             $this->parent = NULL;
         } else {
             $typeName = $this->factory->createView($this->renderer, $this->resolveResource($file));
             $this->parent = new $typeName($this->factory, $this->renderer);
             $this->parent->inherit($this->context, $this->exp);
         }
     }
     return $this->parent;
 }