Exemplo n.º 1
0
 /**
  * takes matching php block and converts to php code
  *
  * @param array $code matches from preg_replace_callback
  * @return string $token
  */
 protected function _processPhp($code)
 {
     $token = '$' . uniqid() . '$';
     $php = new Php($code[2]);
     $php->setCssPrefix($this->_css_prefix);
     $html = $code[1] . $php->getHtml() . $code[3];
     $this->_php_blocks[$token] = '<span class="' . $this->_css_prefix . 'default">' . $html . '</span>';
     return $token;
 }