Class bbcode

Description

This calss handles bbcode formatting in all of the cms

  • author: Abdul Al-Hasany
  • version: 2010
  • copyright: Abdul Al-hasany (c) 2010
  • access: public

Located in /includes/bbcode.class.php (line 36)


	
			
Method Summary
string bbcode_code (mixed $string)
string bbcode_font (string $string)
string bbcode_media (mixed $string)
string bbcode_url_mail (mixed $string)
fomratted codeStyle (string $r, string $s)
void format_bbcode (mixed $string)
string phpCode (string $Str, [string $msg = 'PHP'])
Methods
bbcode_code (line 111)

This function handels code fomrating (normal code, php code and qouting)

  • return: formated post
string bbcode_code (mixed $string)
  • mixed $string: post to be formatted
bbcode_font (line 45)

This functions handels font formating.

search for font bbcode tags and replaces them (bold, italics, align, size, color)

  • return: bbcode-formatted string
string bbcode_font (string $string)
  • string $string: the contents of the post to be modified
bbcode_media (line 135)

This function handels viewing media that are contained in bbcode (audio, video or flash)

  • return: formatted post
string bbcode_media (mixed $string)
  • mixed $string: post contained media content
bbcode_url_mail (line 78)

This function handels links posted using bbcode

  • return: formatted string
string bbcode_url_mail (mixed $string)
  • mixed $string: post containing urls to format
codeStyle (line 182)

handles code viewing in a given post. Used within bbcode::bbcode_code

  • return: string
fomratted codeStyle (string $r, string $s)
  • string $r
  • string $s
format_bbcode (line 213)

This function is to be called in other files if bbcode formatting is required

void format_bbcode (mixed $string)
  • mixed $string
phpCode (line 194)

display php code highlighted

  • return: fomratted string
string phpCode (string $Str, [string $msg = 'PHP'])
  • string $Str: string containg php code to be formatted
  • string $msg: php code

Documentation generated on Fri, 16 Apr 2010 12:54:41 +1000 by phpDocumentor 1.4.1