PHP Class bbcode_firstpass

Inheritance: extends bbcode
Show file Open project: phpbb/phpbb Class Usage Examples

Public Properties

Property Type Description
$message
$parsed_items
$warn_msg

Public Methods

Method Description
bbcode_attachment ( $stx, $in ) Parse inline attachments [ia]
bbcode_code ( $stx, $in ) Parse code tag Expects the argument to start right after the opening [code] tag and to end with [/code]
bbcode_color ( $stx, $in ) Parse color tag
bbcode_flash ( $width, $height, $in ) Parse flash tag
bbcode_img ( $in ) Parse img tag
bbcode_init ( $allow_custom_bbcode = true ) Init bbcode data for later parsing
bbcode_italic ( $in ) Parse i tag
bbcode_parse_code ( $stx, &$code ) Parse code text from code tag
bbcode_parse_list ( $in ) Parse list bbcode Expects the argument to start with a tag
bbcode_quote ( $in ) Parse quote bbcode Expects the argument to start with a tag
bbcode_size ( $stx, $in ) Parse size tag
bbcode_specialchars ( $text ) Transform some characters in valid bbcodes
bbcode_strong ( $in ) Parse b tag
bbcode_underline ( $in ) Parse u tag
check_bbcode ( $bbcode, &$in ) Making some pre-checks for bbcodes as well as increasing the number of parsed items
parse_bbcode ( ) Parse BBCode
path_in_domain ( string $url ) : true Check if url is pointing to this domain/script_path/php-file
prepare_bbcodes ( ) Prepare some bbcodes for better parsing
validate_email ( $var1, $var2 ) Validate email
validate_url ( string $var1, string $var2 ) Validate url

Method Details

bbcode_attachment() public method

Parse inline attachments [ia]
public bbcode_attachment ( $stx, $in )

bbcode_code() public method

Parse code tag Expects the argument to start right after the opening [code] tag and to end with [/code]
public bbcode_code ( $stx, $in )

bbcode_color() public method

Parse color tag
public bbcode_color ( $stx, $in )

bbcode_flash() public method

Parse flash tag
public bbcode_flash ( $width, $height, $in )

bbcode_img() public method

Parse img tag
public bbcode_img ( $in )

bbcode_init() public method

Init bbcode data for later parsing
public bbcode_init ( $allow_custom_bbcode = true )

bbcode_italic() public method

Parse i tag
public bbcode_italic ( $in )

bbcode_parse_code() public method

Parse code text from code tag
public bbcode_parse_code ( $stx, &$code )

bbcode_parse_list() public method

Parse list bbcode Expects the argument to start with a tag
public bbcode_parse_list ( $in )

bbcode_quote() public method

Parse quote bbcode Expects the argument to start with a tag
public bbcode_quote ( $in )

bbcode_size() public method

Parse size tag
public bbcode_size ( $stx, $in )

bbcode_specialchars() public method

Transform some characters in valid bbcodes
public bbcode_specialchars ( $text )

bbcode_strong() public method

Parse b tag
public bbcode_strong ( $in )

bbcode_underline() public method

Parse u tag
public bbcode_underline ( $in )

check_bbcode() public method

Making some pre-checks for bbcodes as well as increasing the number of parsed items
public check_bbcode ( $bbcode, &$in )

parse_bbcode() public method

Parse BBCode
public parse_bbcode ( )

path_in_domain() public method

Check if url is pointing to this domain/script_path/php-file
public path_in_domain ( string $url ) : true
$url string the url to check
return true if the url is pointing to this domain/script_path/php-file, false if not

prepare_bbcodes() public method

Prepare some bbcodes for better parsing
public prepare_bbcodes ( )

validate_email() public method

Validate email
public validate_email ( $var1, $var2 )

validate_url() public method

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

Property Details

$message public property

public $message

$parsed_items public property

public $parsed_items

$warn_msg public property

public $warn_msg