/**
  * 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;
 }
 /**
  * Render contents of a block in the parent view taking block from the decorator into consideration.
  * 
  * @param OutputBuffer $out
  * @param string $name The name of the block to be rendered.
  */
 public function renderParentBlock(OutputBuffer $out, $name)
 {
     $method = 'block_' . $name;
     if (method_exists($this, $method)) {
         return $this->{$method}($out);
     }
     return parent::renderParentBlock($out, $name);
 }