protected function build(template\parser\tree $tree, $sMode) { $window = $this->getWindow(); $content = $tree->reflectApply(); //$window->loadContent($content); switch ($sMode) { case 'delete': case 'update': case 'insert': $content = $window->parseArrayables(array($content)); $window->add($this->cleanStrings($content)); $window->add($this->buildTree($tree)); $result = $this->getResult(); break; // hollow, view, ... // hollow, view, ... default: $this->addToResult($content); if (!($result = $this->getReturn())) { $result = $this->getResult(); } } return $result; }
protected function initTree(template\parser\tree $tree) { $tree->parseRoot($this->getNode()); $tree->isRoot(true); $this->setTree($tree); }