Esempio n. 1
0
 public function finishGroup(&$group)
 {
     $this->_tpl->parse($this->_matchBlock($group));
     $this->_tpl->setCurrentBlock('qf_main_loop');
     $this->_tpl->parseCurrentBlock();
 }
Esempio n. 2
0
 /**
  * Check if the given block exist. If not then an error is logged.
  * Otherwise it sets the name of the current block: the block where variables are added
  *
  * @param    string      block name
  * @return   integer     SIGMA_OK on success, SIGMA_BLOCK_NOT_FOUND on failure
  */
 function setCurrentBlock($block = '__global__')
 {
     if (!$this->blockExists($block)) {
         \DBG::log('The SIGMA-Block ' . $block . ' does not exist');
         return SIGMA_BLOCK_NOT_FOUND;
     }
     return parent::setCurrentBlock($block);
 }