Exemplo n.º 1
0
 /**
  * set text
  *
  * @parser $parser
  * @parser $line
  */
 function __construct($parser, $line = false)
 {
     parent::__construct();
     if (!empty($line)) {
         $this->children[] = $line;
     }
 }
Exemplo n.º 2
0
 /**
  * set text
  */
 function __construct($parser, $line = "")
 {
     parent::__construct();
     if (preg_match('/' . self::REGEX . '/x', $line, $m)) {
         $this->children[] = preg_replace('/[\\\\](.)/x', '\\1', $m[1]);
     }
 }