PHP 클래스 phpbb\textreparser\base

상속: implements phpbb\textreparser\reparser_interface
파일 보기 프로젝트 열기: phpbb/phpbb

보호된 프로퍼티들

프로퍼티 타입 설명
$name The reparser name
$save_changes Whether to save changes to the database

공개 메소드들

메소드 설명
disable_save ( ) Disable saving changes to the database
enable_save ( ) Enable saving changes to the database
get_max_id ( )
get_name ( ) : string Returns the name of the reparser
reparse_range ( $min_id, $max_id )
set_name ( string $name ) Sets the name of the reparser

보호된 메소드들

메소드 설명
add_missing_fields ( array $record ) : array Add fields to given record, if applicable
get_records_by_range ( integer $min_id, integer $max_id ) : array Return all records in given range
guess_bbcode ( array $record, string $bbcode ) : boolean Guess whether given BBCode is in use in given record
guess_bbcodes ( array $record ) : boolean Guess whether any BBCode is in use in given record
guess_magic_url ( array $record ) : boolean Guess whether magic URLs are in use in given record
guess_smilies ( array $record ) : boolean Guess whether smilies are in use in given record
reparse_record ( array $record ) Reparse given record
save_record ( array $record )

메소드 상세

add_missing_fields() 보호된 메소드

The enable_* fields are not always saved to the database. Sometimes we need to guess their original value based on the text content or possibly other fields
protected add_missing_fields ( array $record ) : array
$record array Original record
리턴 array Complete record

disable_save() 공개 메소드

Disable saving changes to the database
public disable_save ( )

enable_save() 공개 메소드

Enable saving changes to the database
public enable_save ( )

get_max_id() 추상적인 공개 메소드

abstract public get_max_id ( )

get_name() 공개 메소드

Returns the name of the reparser
public get_name ( ) : string
리턴 string Name of reparser

get_records_by_range() 추상적인 보호된 메소드

Return all records in given range
abstract protected get_records_by_range ( integer $min_id, integer $max_id ) : array
$min_id integer Lower bound
$max_id integer Upper bound
리턴 array Array of records

guess_bbcode() 보호된 메소드

Guess whether given BBCode is in use in given record
protected guess_bbcode ( array $record, string $bbcode ) : boolean
$record array
$bbcode string
리턴 boolean

guess_bbcodes() 보호된 메소드

Guess whether any BBCode is in use in given record
protected guess_bbcodes ( array $record ) : boolean
$record array
리턴 boolean

guess_magic_url() 보호된 메소드

Guess whether magic URLs are in use in given record
protected guess_magic_url ( array $record ) : boolean
$record array
리턴 boolean

guess_smilies() 보호된 메소드

Guess whether smilies are in use in given record
protected guess_smilies ( array $record ) : boolean
$record array
리턴 boolean

reparse_range() 공개 메소드

public reparse_range ( $min_id, $max_id )

reparse_record() 보호된 메소드

Reparse given record
protected reparse_record ( array $record )
$record array Associative array containing the record's data

save_record() 추상적인 보호된 메소드

abstract protected save_record ( array $record )
$record array

set_name() 공개 메소드

Sets the name of the reparser
public set_name ( string $name )
$name string The reparser name

프로퍼티 상세

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

The reparser name
protected $name

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

Whether to save changes to the database
protected $save_changes