Esempio n. 1
0
 function __construct($text = false)
 {
     parent::__construct("p");
     if ($text !== false) {
         $this->children[] = $text;
     }
 }
Esempio n. 2
0
 function __construct($parser, $line)
 {
     parent::__construct('a');
     if (preg_match('/' . self::REGEX . '/', $line, $m)) {
         $parser->subParse($this, $m[1]);
     }
 }
Esempio n. 3
0
 function __construct($tag, $optTag, $level)
 {
     parent::__construct($tag);
     $this->level = $level;
     $opt = new NyaaWikiList($optTag);
     $this->last = $this->last->insert($opt);
 }
Esempio n. 4
0
 function __construct($parser, $line)
 {
     parent::__construct('pre');
     $this->parser = $parser;
     $this->text = $line;
     $this->addClass('wiki-box');
     if (preg_match('/' . self::REGEX . '/x', $line, $m)) {
         if (empty($m[2])) {
             $this->capStart(array($this, 'input'));
         }
     }
 }
Esempio n. 5
0
 function __construct($parser, $v)
 {
     parent::__construct('blockquote');
     $this->parser = $parser;
     if (preg_match('/' . $this::REGEXP . '/x', $v, $m)) {
         $this->setAttrs($m[1]);
         $this->text = $m[2];
     }
     if ($this->isIncomplate($m)) {
         $this->capStart(array($this, 'input'));
     }
 }
Esempio n. 6
0
 function __construct($tag, $level)
 {
     parent::__construct($tag);
     $this->level = $level;
 }
Esempio n. 7
0
 function __construct($level)
 {
     $this->level = $level;
     parent::__construct('div');
 }
Esempio n. 8
0
 /**
  * construct
  */
 function __construct($level)
 {
     parent::__construct('div');
     $this->addClass("wiki-section wiki-section-{$level}");
     $this->level = $level;
 }