Example #1
0
 public function parse($html, $blockName = 'document', $blockParams = null, $noCycle = false)
 {
     if ($noCycle) {
         return parent::parse($html, $blockName, $blockParams);
     }
     if (empty($blockParams['var'])) {
         return;
     }
     $this->params[0] = $this->_getVar($blockParams['var']);
     return parent::parse($html, $blockName, $blockParams, $noCycle);
 }
Example #2
0
 public function parse($html = null, $blockName = 'document', $blockParams = null, $noCycle = false)
 {
     $blockParams['var'] = 'message';
     return parent::parse($html, $blockName, $blockParams, $noCycle);
 }