Beispiel #1
0
 protected function visitChildNodes(AbstractRenderNode $node)
 {
     $children = $node->getChildren();
     foreach ($children as $childNode) {
         $childNode->accept($this);
     }
 }
Beispiel #2
0
 /**
  * @param AbstractRenderNode $node
  */
 protected function visitChildNodes(AbstractRenderNode $node)
 {
     $currentContent = $this->content;
     $children = $node->getChildren();
     foreach ($children as $childNode) {
         $childNode->accept($this);
         // calls visitDynamicHTMLNode |  visitLegacyNode -> createNodeContent-> set this->content
         $currentContent['children'][] = $this->content;
     }
     $this->content = $currentContent;
 }
Beispiel #3
0
 public function &createChildren()
 {
     $childNodes = $this->unitNode->getChildren();
     $childAPIs = new LegacyRenderList();
     foreach ($childNodes as $childNode) {
         $unitId = $childNode->getUnitId();
         if ($childNode instanceof LegacyNode) {
             $childAPI = $childNode->getModuleAPI($this->defaultVisitor, $this->newRenderContext);
         } else {
             // This is a dirty hack !!!
             // It allows the old root module the rendering of new modules.
             $childAPI = new LegacyModuleAPI($this->defaultVisitor, $childNode, $this->newRenderContext);
         }
         $childAPIs->add($unitId, $childAPI);
     }
     return $childAPIs;
 }