Beispiel #1
0
 /**
  * @param NodeList $nodelist
  * @param string|null $parent_name
  * @param FilterExpression|null $parent_name_expr
  * @param array|null $template_dirs
  */
 public function __construct($nodelist, $parent_name, $parent_name_expr, $template_dirs = null)
 {
     $this->nodelist = $nodelist;
     $this->parent_name = $parent_name;
     $this->parent_name_expr = $parent_name_expr;
     $this->template_dirs = $template_dirs;
     $blocks_ = array();
     foreach ($nodelist->getNodesByType('BlockNode') as $n) {
         $blocks_[$n->name] = $n;
     }
     $this->blocks = $blocks_;
 }