Miscellaneous BBCode elements
version | 1 |
---|---|
package | wikindx4\core\display |
author | Mark Grimshaw |
__construct()
bbencode_list(string $message) : string
..[/list] and [list=xx]...[/list]
This has been shamelessly pinched from PHP Bulletin Board code with a little debugging.... Nathan Codding - Jan. 12, 2001. Performs [list][/list] and [list=?][/list] bbencoding on the given string, and returns the results. Any unmatched "[list]" or "[/list]" token will just be left alone. This works fine with both having more than one list in a message, and with nested lists. Since that is not a regular language, this is actually a PDA and uses a stack. Great fun.
Note: This function assumes the first character of $message is a space, which is added by bbencode().
string
string
codeToHtml(string $string) : string
..[/x] BBcode with HTML code
Used for display back from DB table
string
string
stripBBCode(string $string) : string
string
string
codeCallback(array $matches) : string
..[/code] which cannot have other BBCode within it
array
string
imgCallback(array $matches) : string
..[/img] to check display limitations
array
string
$imgHeightLimit
$imgWidthLimit
$session