PHP Class App\Libraries\BBCodeFromDB

It only does "second pass" parsing of phpbb-preprocessed bbcode. Nothing in this class does any kind of checking because it should be already done by phpbb.
Mostra file Open project: ppy/osu-web Class Usage Examples

Public Properties

Property Type Description
$refId
$text
$uid
$withGallery

Public Methods

Method Description
__construct ( $text, $uid = '', $withGallery = false )
clearSpacesBetweenTags ( $text )
parseAudio ( $text )
parseBold ( $text )
parseBox ( $text )
parseBoxHelperPrefix ( $linkText )
parseBoxHelperSuffix ( )
parseCentre ( $text )
parseCode ( $text )
parseColour ( $text )
parseEmail ( $text )
parseHeading ( $text )
parseImage ( $text )
parseItalic ( $text )
parseList ( $text )
parseNotice ( $text )
parseProfile ( $text )
parseQuote ( $text )
parseSize ( $text )
parseSmilies ( $text ) stolen from: www/forum/includes/functions.php:2845
parseSpoiler ( $text )
parseStrike ( $text )
parseUnderline ( $text )
parseUrl ( $text )
parseYoutube ( $text )
toEditor ( )
toHTML ( $ignoreLineHeight = false )

Method Details

__construct() public method

public __construct ( $text, $uid = '', $withGallery = false )

clearSpacesBetweenTags() public method

public clearSpacesBetweenTags ( $text )

parseAudio() public method

public parseAudio ( $text )

parseBold() public method

public parseBold ( $text )

parseBox() public method

public parseBox ( $text )

parseBoxHelperPrefix() public method

public parseBoxHelperPrefix ( $linkText )

parseBoxHelperSuffix() public method

parseCentre() public method

public parseCentre ( $text )

parseCode() public method

public parseCode ( $text )

parseColour() public method

public parseColour ( $text )

parseEmail() public method

public parseEmail ( $text )

parseHeading() public method

public parseHeading ( $text )

parseImage() public method

public parseImage ( $text )

parseItalic() public method

public parseItalic ( $text )

parseList() public method

public parseList ( $text )

parseNotice() public method

public parseNotice ( $text )

parseProfile() public method

public parseProfile ( $text )

parseQuote() public method

public parseQuote ( $text )

parseSize() public method

public parseSize ( $text )

parseSmilies() public method

stolen from: www/forum/includes/functions.php:2845
public parseSmilies ( $text )

parseSpoiler() public method

public parseSpoiler ( $text )

parseStrike() public method

public parseStrike ( $text )

parseUnderline() public method

public parseUnderline ( $text )

parseUrl() public method

public parseUrl ( $text )

parseYoutube() public method

public parseYoutube ( $text )

toEditor() public method

public toEditor ( )

toHTML() public method

public toHTML ( $ignoreLineHeight = false )

Property Details

$refId public_oe property

public $refId

$text public_oe property

public $text

$uid public_oe property

public $uid

$withGallery public_oe property

public $withGallery