Exemplo n.º 1
0
 /**
  * Executes each transformation.
  *
  * @return void
  */
 public function execute()
 {
     $xml = $this->getSource();
     if ($xml) {
         $this->dispatch('transformer.pre-transform', array(self::$event_dispatcher, $xml));
         $xml = $this->behaviours->process($xml);
     }
     foreach ($this->getTransformations() as $transformation) {
         $this->log('Applying transformation query ' . $transformation->getQuery() . ' using writer ' . get_class($transformation->getWriter()));
         $transformation->execute($xml);
     }
 }
Exemplo n.º 2
0
 /**
  * Executes each transformation.
  *
  * @return void
  */
 public function execute()
 {
     $xml = $this->getSource();
     if ($xml) {
         if (!$this->getParseprivate()) {
             $this->behaviours->addBehaviour(new DocBlox_Transformer_Behaviour_Tag_Internal());
         }
         $this->behaviours->setLogger(DocBlox_Core_Abstract::$logger);
         $xml = $this->behaviours->process($xml);
     }
     foreach ($this->getTransformations() as $transformation) {
         $this->log('Applying transformation query ' . $transformation->getQuery() . ' using writer ' . get_class($transformation->getWriter()));
         $transformation->execute($xml);
     }
 }