forum_description
class forum_description extends row_based_plugin
Properties
protected string | $name | from base | |
protected bool | $save_changes | from base | |
protected driver_interface | $db | from row_based_plugin | |
protected string | $table | from row_based_plugin |
Methods
Return all records in given range
Guess whether given BBCode is in use in given record
Return the name of the column that correspond to each field
Generate the query that retrieves all records for given range
Details
in
row_based_plugin at line 50
int
get_max_id()
Return the highest ID for all existing records
in
row_based_plugin at line 65
protected array
get_records_by_range(int $min_id, int $max_id)
Return all records in given range
in
row_based_plugin at line 108
protected void
save_record(array $record)
Save record
in
base at line 59
protected array
add_missing_fields(array $record)
Add fields to given record, if applicable
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
in
base at line 105
string
get_name()
Returns the name of the reparser
in
base at line 115
set_name(string $name)
Sets the name of the reparser
in
base at line 123
disable_save()
Disable saving changes to the database
in
base at line 131
enable_save()
Enable saving changes to the database
in
base at line 143
protected bool
guess_bbcode(array $record, string $bbcode)
Guess whether given BBCode is in use in given record
in
base at line 175
protected bool
guess_bbcodes(array $record)
Guess whether any BBCode is in use in given record
in
base at line 202
protected bool
guess_magic_url(array $record)
Guess whether magic URLs are in use in given record
in
base at line 214
protected bool
guess_smilies(array $record)
Guess whether smilies are in use in given record
in
base at line 222
reparse_range(int $min_id, int $max_id)
Reparse all records in given range
in
base at line 235
protected
reparse_record(array $record)
Reparse given record
in
row_based_plugin at line 34
__construct(driver_interface $db, string $table)
Constructor
at line 21
array
get_columns()
Return the name of the column that correspond to each field
in
row_based_plugin at line 82
protected string
get_records_by_range_query(int $min_id, int $max_id)
Generate the query that retrieves all records for given range