예제 #1
0
 public function __construct(&$view)
 {
     parent::__construct($view);
 }
예제 #2
0
파일: View.php 프로젝트: jfrancr/figdice
 /**
  * Process parsed source and render view,
  * using the data universe.
  *
  * @return string
  * @throws RenderingException
  */
 public function render()
 {
     if (!$this->bParsed) {
         $this->parse();
     }
     if (null != $this->parentViewElement) {
         $this->rootNode->view =& $this->parentViewElement->view;
     }
     if (!$this->rootNode) {
         throw new XMLParsingException('No template file loaded', '', 0);
     }
     $result = $this->rootNode->render();
     if (!$this->parentViewElement) {
         $result = $this->plugIntoSlots($result);
     }
     return $result;
 }