Property | Type | Description | |
---|---|---|---|
$name | The reparser name | ||
$save_changes | Whether to save changes to the database |
Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
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 ) |
protected add_missing_fields ( array $record ) : array | ||
$record | array | Original record |
return | array | Complete record |
protected guess_bbcodes ( array $record ) : boolean | ||
$record | array | |
return | boolean |
protected guess_magic_url ( array $record ) : boolean | ||
$record | array | |
return | boolean |
protected guess_smilies ( array $record ) : boolean | ||
$record | array | |
return | boolean |
protected reparse_record ( array $record ) | ||
$record | array | Associative array containing the record's data |
abstract protected save_record ( array $record ) | ||
$record | array |