PHP 클래스 parse_message

상속: extends bbcode_firstpass
파일 보기 프로젝트 열기: phpbb/phpbb 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$allow_flash_bbcode
$allow_img_bbcode
$allow_quote_bbcode
$allow_url_bbcode
$attachment_data
$filename_data
$message_status Helps ironing out user error
$mode

보호된 프로퍼티들

프로퍼티 타입 설명
$mimetype_guesser phpbb\mimetype\guesser The mimetype guesser object used for attachment mimetypes
$plupload phpbb\plupload\plupload The plupload object used for dealing with attachments

공개 메소드들

메소드 설명
decode_message ( $custom_bbcode_uid = '', $update_this_message = true ) Decode message to be placed back into form box
format_display ( $allow_bbcode, $allow_magic_url, $allow_smilies, $update_this_message = true ) Formatting text for display
get_submitted_attachment_data ( $check_user_id = false ) Get Attachment Data
magic_url ( $server_url ) Replace magic urls of form http://xxx.xxx., www.xxx. and [email protected].
parse ( $allow_bbcode, $allow_magic_url, $allow_smilies, $allow_img_bbcode = true, $allow_flash_bbcode = true, $allow_quote_bbcode = true, $allow_url_bbcode = true, $update_this_message = true, $mode = 'post' ) Parse Message
parse_attachments ( $form_name, $mode, $forum_id, $submit, $preview, $refresh, $is_message = false ) Parse Attachments
parse_message ( $message = '' ) Init - give message here or manually
parse_poll ( &$poll ) Parse Poll
remove_nested_quotes ( integer $max_depth ) : null Remove nested quotes at given depth in current parsed message
set_mimetype_guesser ( phpbb\mimetype\guesser $mimetype_guesser ) : null Setter function for passing the mimetype_guesser object
set_plupload ( phpbb\plupload\plupload $plupload ) : null Setter function for passing the plupload object
smilies ( $max_smilies ) Parse Smilies
validate_bbcode_by_extension ( ) : mixed Function to perform custom bbcode validation by extensions can be used in bbcode_init() to assign regexp replacement Example: 'regexp' => array('#\b\\[/b\]#uise' => "\$this->validate_bbcode_by_extension('\$1')")

메소드 상세

decode_message() 공개 메소드

Decode message to be placed back into form box
public decode_message ( $custom_bbcode_uid = '', $update_this_message = true )

format_display() 공개 메소드

Formatting text for display
public format_display ( $allow_bbcode, $allow_magic_url, $allow_smilies, $update_this_message = true )

get_submitted_attachment_data() 공개 메소드

Get Attachment Data
public get_submitted_attachment_data ( $check_user_id = false )

magic_url() 공개 메소드

Cuts down displayed size of link if over 50 chars, turns absolute links into relative versions when the server/script path matches the link
public magic_url ( $server_url )

parse() 공개 메소드

Parse Message
public parse ( $allow_bbcode, $allow_magic_url, $allow_smilies, $allow_img_bbcode = true, $allow_flash_bbcode = true, $allow_quote_bbcode = true, $allow_url_bbcode = true, $update_this_message = true, $mode = 'post' )

parse_attachments() 공개 메소드

Parse Attachments
public parse_attachments ( $form_name, $mode, $forum_id, $submit, $preview, $refresh, $is_message = false )

parse_message() 공개 메소드

Init - give message here or manually
public parse_message ( $message = '' )

parse_poll() 공개 메소드

Parse Poll
public parse_poll ( &$poll )

remove_nested_quotes() 공개 메소드

Remove nested quotes at given depth in current parsed message
public remove_nested_quotes ( integer $max_depth ) : null
$max_depth integer Depth limit
리턴 null

set_mimetype_guesser() 공개 메소드

Setter function for passing the mimetype_guesser object
public set_mimetype_guesser ( phpbb\mimetype\guesser $mimetype_guesser ) : null
$mimetype_guesser phpbb\mimetype\guesser The mimetype_guesser object
리턴 null

set_plupload() 공개 메소드

Setter function for passing the plupload object
public set_plupload ( phpbb\plupload\plupload $plupload ) : null
$plupload phpbb\plupload\plupload The plupload object
리턴 null

smilies() 공개 메소드

Parse Smilies
public smilies ( $max_smilies )

validate_bbcode_by_extension() 공개 메소드

Accepts variable number of parameters
public validate_bbcode_by_extension ( ) : mixed
리턴 mixed Validation result

프로퍼티 상세

$allow_flash_bbcode 공개적으로 프로퍼티

public $allow_flash_bbcode

$allow_img_bbcode 공개적으로 프로퍼티

public $allow_img_bbcode

$allow_quote_bbcode 공개적으로 프로퍼티

public $allow_quote_bbcode

$allow_url_bbcode 공개적으로 프로퍼티

public $allow_url_bbcode

$attachment_data 공개적으로 프로퍼티

public $attachment_data

$filename_data 공개적으로 프로퍼티

public $filename_data

$message_status 공개적으로 프로퍼티

Helps ironing out user error
public $message_status

$mimetype_guesser 보호되어 있는 프로퍼티

The mimetype guesser object used for attachment mimetypes
protected guesser,phpbb\mimetype $mimetype_guesser
리턴 phpbb\mimetype\guesser

$mode 공개적으로 프로퍼티

public $mode

$plupload 보호되어 있는 프로퍼티

The plupload object used for dealing with attachments
protected plupload,phpbb\plupload $plupload
리턴 phpbb\plupload\plupload