Пример #1
0
 function __construct($parser, $line)
 {
     parent::__construct();
     $this->insert(new NyaaWikiSingleTag('hr'));
 }
Пример #2
0
 function __toString()
 {
     return parent::__toString() . "->" . $this->tag;
 }
Пример #3
0
 /**
  * @param $tk
  */
 function insert($tk)
 {
     if ($this->useParagraph === true && is_a($tk, 'NyaaParserTokenInline')) {
         $p = new NyaaWikiParagraph();
         $p->insert($tk);
         return parent::insert($p);
     }
     return parent::insert($tk);
 }