Example #1
0
 protected function _parseItem($html, $vars, $blockName = 'document', $blockParams = null)
 {
     // we need this ajustment to call {Image/} block w/o any params
     $vars = Set::merge($vars, array('Image' => $vars));
     return parent::_parseItem($html, $vars, $blockName, $blockParams);
 }
Example #2
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 #3
0
 public function parse($html = null, $blockName = 'document', $blockParams = null, $noCycle = false)
 {
     $blockParams['var'] = 'message';
     return parent::parse($html, $blockName, $blockParams, $noCycle);
 }