function __construct($text = false) { parent::__construct("p"); if ($text !== false) { $this->children[] = $text; } }
function __construct($parser, $line) { parent::__construct('a'); if (preg_match('/' . self::REGEX . '/', $line, $m)) { $parser->subParse($this, $m[1]); } }
function __construct($tag, $optTag, $level) { parent::__construct($tag); $this->level = $level; $opt = new NyaaWikiList($optTag); $this->last = $this->last->insert($opt); }
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')); } } }
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')); } }
function __construct($tag, $level) { parent::__construct($tag); $this->level = $level; }
function __construct($level) { $this->level = $level; parent::__construct('div'); }
/** * construct */ function __construct($level) { parent::__construct('div'); $this->addClass("wiki-section wiki-section-{$level}"); $this->level = $level; }