Example #1
0
 public function piccoInsert(ICompiler $compiler, IPiccoNode $node, IPiccoNode $tree)
 {
     if (($picco = $tree->getPiccoId($piccoId = $node->getPiccoAttribute('insert'))) === null) {
         throw new CompilerException(sprintf('Node [%s] requested unknown picco id [%s].', $node->getPath(), $piccoId));
     }
     $node->addNode($picco, true);
     return $node;
 }