Example #1
0
 function generateBeforeContent($code)
 {
     parent::generateBeforeContent($code);
     $code->writePHP($this->getComponentRefCode() . '->registerDataset(');
     $this->attributeNodes['from']->generateExpression($code);
     $code->writePHP(');');
 }
Example #2
0
 function generateBeforeContent($code)
 {
     $code->writePhp($this->getComponentRefCode() . '->setFetcherName("' . $this->getAttribute('using') . '");');
     $code->writePhp($this->getComponentRefCode() . '->setIncludePath("' . $this->getAttribute('include') . '");');
     if ($this->hasAttribute('cache_dataset') && !$this->getBoolAttribute('cache_dataset')) {
         $code->writePhp($this->getComponentRefCode() . '->setCacheDataset(false);');
     }
     parent::generateBeforeContent($code);
 }