PHP Class bbcode_firstpass

Inheritance: extends bbcode
Afficher le fichier Open project: phpbb/phpbb Class Usage Examples

Méthodes publiques

Свойство Type Description
$message
$parsed_items
$warn_msg

Méthodes publiques

Méthode 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 méthode

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

bbcode_code() public méthode

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 méthode

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

bbcode_flash() public méthode

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

bbcode_img() public méthode

Parse img tag
public bbcode_img ( $in )

bbcode_init() public méthode

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

bbcode_italic() public méthode

Parse i tag
public bbcode_italic ( $in )

bbcode_parse_code() public méthode

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

bbcode_parse_list() public méthode

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

bbcode_quote() public méthode

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

bbcode_size() public méthode

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

bbcode_specialchars() public méthode

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

bbcode_strong() public méthode

Parse b tag
public bbcode_strong ( $in )

bbcode_underline() public méthode

Parse u tag
public bbcode_underline ( $in )

check_bbcode() public méthode

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

parse_bbcode() public méthode

Parse BBCode
public parse_bbcode ( )

path_in_domain() public méthode

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
Résultat true if the url is pointing to this domain/script_path/php-file, false if not

prepare_bbcodes() public méthode

Prepare some bbcodes for better parsing
public prepare_bbcodes ( )

validate_email() public méthode

Validate email
public validate_email ( $var1, $var2 )

validate_url() public méthode

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_oe property

public $message

$parsed_items public_oe property

public $parsed_items

$warn_msg public_oe property

public $warn_msg