/** * @see ViewableContestSponsor::getFormattedSponsor() */ public function getFormattedMessage($outputType = 'text/html') { require_once WCF_DIR . 'lib/data/message/bbcode/SimpleMessageParser.class.php'; return SimpleMessageParser::getInstance()->parse($this->sponsor); }
/** * Gets the page URLs. * * @return array */ protected static function getPageURLs() { $urlString = ''; if (defined('PAGE_URL')) { $urlString .= PAGE_URL; } if (defined('PAGE_URLS')) { $urlString .= "\n" . PAGE_URLS; } $urlString = StringUtil::unifyNewlines($urlString); self::$pageURLs = ArrayUtil::trim(explode("\n", $urlString)); }
/** * Returnes the html version of the bash content * @return string */ public function getFormatedText() { require_once WCF_DIR . 'lib/data/message/bbcode/SimpleMessageParser.class.php'; $parser = SimpleMessageParser::getInstance(); return $parser->parse($this->description); }