Example #1
0
 private function executePasses(Definition $definition, Element $tableEl)
 {
     foreach ($definition->getPasses() as $pass) {
         $passCellEls = $tableEl->ownerDocument->xpath()->query('//cell[@pass="******"]');
         foreach ($passCellEls as $passCellEl) {
             $rowEls = $tableEl->ownerDocument->xpath()->query('ancestor::row', $passCellEl);
             $rowEl = $rowEls->item(0);
             $value = $tableEl->ownerDocument->xpath()->evaluate($passCellEl->nodeValue, $rowEl);
             $passCellEl->nodeValue = $value;
         }
     }
 }