示例#1
0
 /**
  * @param LegacyNode $node
  */
 public function visitLegacyNode(LegacyNode $node)
 {
     $this->addModuleToUsedList($node->getModuleId());
     $this->createNodeContent($node);
     $this->activateLegacySupport();
     $this->visitChildNodes($node);
 }
示例#2
0
 public function visitLegacyNode(LegacyNode $node)
 {
     $moduleId = $node->getModuleId();
     if ($this->isNotRendered($moduleId)) {
         $node->renderModuleHead();
         $this->markAsRendered($moduleId);
     }
     $this->visitChildNodes($node);
 }
示例#3
0
 public function visitLegacyNode(LegacyNode $node)
 {
     $moduleId = $node->getModuleId();
     if (!$this->isVisited($moduleId)) {
         $head_output = $this->getLegacyModuleHeaderOutput($node);
         $this->moduleData[$moduleId] = array('header' => $head_output);
     }
     $this->visitChildNodes($node);
 }
示例#4
0
 /**
  * This method is overwritten to test the legacy node traversing without
  * a real legacy module, which are nearly untestable.
  *
  * @param LegacyNode $node
  *
  * @return string
  */
 protected function getLegacyModuleHeaderOutput(LegacyNode $node)
 {
     return "<!-- HTML header of " . $node->getModuleId() . " -->";
 }