Class bbcode_firstpass

Description

BBCODE FIRSTPASS

BBCODE first pass class (functions for parsing messages for db storage)

Located in /includes/message_parser.php (line 29)

bbcode
   |
   --bbcode_firstpass
Direct descendents
Class Description
 class parse_message Main message parser for posting, pm, etc. takes raw message
Variable Summary
 mixed $message
 mixed $warn_msg
Method Summary
 void bbcode_attachment ( $stx,  $in)
 void bbcode_code ( $stx,  $in)
 void bbcode_color ( $stx,  $in)
 void bbcode_flash ( $width,  $height,  $in)
 void bbcode_img ( $in)
 void bbcode_init ()
 void bbcode_italic ( $in)
 void bbcode_parse_code ( $stx,  &$code)
 void bbcode_parse_list ( $in)
 void bbcode_quote ( $in)
 void bbcode_size ( $stx,  $in)
 void bbcode_specialchars ( $text)
 void bbcode_strong ( $in)
 void bbcode_underline ( $in)
 void check_bbcode ( $bbcode,  &$in)
 void parse_bbcode ()
 true path_in_domain (string $url)
 void prepare_bbcodes ()
 void validate_email ( $var1,  $var2)
 void validate_url (string $var1, string $var2)
Variables
mixed $message = '' (line 31)
mixed $parsed_items = array() (line 33)
mixed $warn_msg = array() (line 32)

Inherited Variables

Inherited from bbcode

bbcode::$bbcodes
bbcode::$bbcode_bitfield
bbcode::$bbcode_cache
bbcode::$bbcode_template
bbcode::$bbcode_uid
bbcode::$template_bitfield
bbcode::$template_filename
Methods
bbcode_attachment (line 382)

Parse inline attachments [ia]

void bbcode_attachment ( $stx,  $in)
  • $stx
  • $in
bbcode_code (line 465)

Parse code tag

Expects the argument to start right after the opening [code] tag and to end with [/code]

void bbcode_code ( $stx,  $in)
  • $stx
  • $in
bbcode_color (line 223)

Parse color tag

void bbcode_color ( $stx,  $in)
  • $stx
  • $in
bbcode_flash (line 337)

Parse flash tag

void bbcode_flash ( $width,  $height,  $in)
  • $width
  • $height
  • $in
bbcode_img (line 275)

Parse img tag

void bbcode_img ( $in)
  • $in
bbcode_init (line 105)

Init bbcode data for later parsing

void bbcode_init ()
bbcode_italic (line 262)

Parse i tag

void bbcode_italic ( $in)
  • $in
bbcode_parse_code (line 396)

Parse code text from code tag

  • access: private
void bbcode_parse_code ( $stx,  &$code)
  • $stx
  • &$code
bbcode_parse_list (line 558)

Parse list bbcode

Expects the argument to start with a tag

void bbcode_parse_list ( $in)
  • $in
bbcode_quote (line 686)

Parse quote bbcode

Expects the argument to start with a tag

void bbcode_quote ( $in)
  • $in
bbcode_size (line 195)

Parse size tag

void bbcode_size ( $stx,  $in)
  • $stx
  • $in
bbcode_specialchars (line 184)

Transform some characters in valid bbcodes

void bbcode_specialchars ( $text)
  • $text
bbcode_strong (line 249)

Parse b tag

void bbcode_strong ( $in)
  • $in
bbcode_underline (line 236)

Parse u tag

void bbcode_underline ( $in)
  • $in
check_bbcode (line 164)

Making some pre-checks for bbcodes as well as increasing the number of parsed items

void check_bbcode ( $bbcode,  &$in)
  • $bbcode
  • &$in
parse_bbcode (line 38)

Parse BBCode

void parse_bbcode ()
path_in_domain (line 980)

Check if url is pointing to this domain/script_path/php-file

  • return: if the url is pointing to this domain/script_path/php-file, false if not
  • access: private
true path_in_domain (string $url)
  • string $url: the url to check
prepare_bbcodes (line 84)

Prepare some bbcodes for better parsing

void prepare_bbcodes ()
validate_email (line 877)

Validate email

void validate_email ( $var1,  $var2)
  • $var1
  • $var2
validate_url (line 917)

Validate url

void validate_url (string $var1, string $var2)
  • string $var1: optional url parameter for url bbcode: [url(=$var1)]$var2[/url]
  • string $var2: url bbcode content: [url(=$var1)]$var2[/url]

Inherited Methods

Inherited From bbcode

 bbcode::bbcode()
 bbcode::bbcode_cache_init()
 bbcode::bbcode_list()
 bbcode::bbcode_second_pass()
 bbcode::bbcode_second_pass_code()
 bbcode::bbcode_second_pass_quote()
 bbcode::bbcode_tpl()
 bbcode::bbcode_tpl_replace()

Documentation generated on Tue, 26 Aug 2008 08:34:07 +0200 by phpDocumentor 1.4.2