◆ init()
Initializes the given filters.
- Parameters
-
References dcCore\app().
◆ getFilters()
Gets the filters.
- Returns
- array The filters.
◆ isSpam()
Determines whether the specified cursor is a spam.
- Parameters
-
- Returns
- bool True if the specified current is spam, False otherwise.
References cursor\clean(), and dcBlog\COMMENT_JUNK.
◆ trainFilters()
trainFilters |
( |
dcRecord |
$rs, |
|
|
string |
$status, |
|
|
string |
$filter_name |
|
) |
| |
Train antispam filters with current comment in record
- Parameters
-
dcRecord | $rs | The comment record |
string | $status | The status |
string | $filter_name | The filter name |
◆ statusMessage()
statusMessage |
( |
dcRecord |
$rs, |
|
|
string |
$filter_name |
|
) |
| |
Get filter status message
- Parameters
-
dcRecord | $rs | The comment record |
string | $filter_name | The filter name |
- Returns
- string
References dcRecord\exists().
◆ saveFilterOpts()
saveFilterOpts |
( |
array |
$opts, |
|
|
bool |
$global = false |
|
) |
| |
Saves filter settings.
- Parameters
-
array | $opts | The settings |
bool | $global | True if global settings |
References dcCore\app().
The documentation for this class was generated from the following file: