|
| __construct () |
|
| isSpam (string $type, ?string $author, ?string $email, ?string $site, ?string $ip, ?string $content, ?int $post_id, string &$status) |
|
| trainFilter (string $status, string $filter, string $type, ?string $author, ?string $email, ?string $site, ?string $ip, ?string $content, dcRecord $rs) |
|
| getStatusMessage (string $status, ?int $comment_id) |
|
| gui (string $url) |
|
| hasGUI () |
|
| guiURL () |
|
| guiLink () |
|
◆ __construct()
◆ setInfo()
◆ isSpam()
isSpam |
( |
string |
$type, |
|
|
?string |
$author, |
|
|
?string |
$email, |
|
|
?string |
$site, |
|
|
?string |
$ip, |
|
|
?string |
$content, |
|
|
?int |
$post_id, |
|
|
string & |
$status |
|
) |
| |
This method should return if a comment is a spam or not. If it returns true or false, execution of next filters will be stoped. If should return nothing to let next filters apply.
Your filter should also fill $status variable with its own information if comment is a spam.
- Parameters
-
string | $type | The comment type (comment / trackback) |
string | $author | The comment author |
string | $email | The comment author email |
string | $site | The comment author site |
string | $ip | The comment author IP |
string | $content | The comment content |
int | $post_id | The comment post_id |
string | $status | The comment status |
Reimplemented in dcFilterAkismet, dcFilterIP, dcFilterIpLookup, dcFilterIPv6, dcFilterLinksLookup, dcFilterWords, and dcFilterFairTrackbacks.
◆ trainFilter()
trainFilter |
( |
string |
$status, |
|
|
string |
$filter, |
|
|
string |
$type, |
|
|
?string |
$author, |
|
|
?string |
$email, |
|
|
?string |
$site, |
|
|
?string |
$ip, |
|
|
?string |
$content, |
|
|
dcRecord |
$rs |
|
) |
| |
Train the antispam filter
- Parameters
-
string | $status | The comment status |
string | $filter | The filter |
string | $type | The comment type |
string | $author | The comment author |
string | $email | The comment author email |
string | $site | The comment author site |
string | $ip | The comment author IP |
string | $content | The comment content |
dcRecord | $rs | The comment record |
Reimplemented in dcFilterAkismet.
◆ getStatusMessage()
getStatusMessage |
( |
string |
$status, |
|
|
?int |
$comment_id |
|
) |
| |
◆ gui()
◆ hasGUI()
◆ guiURL()
Get the filter settings GUI URL
- Returns
- false|string
References $gui_url.
Referenced by guiLink().
◆ guiLink()
◆ $name
◆ $description
◆ $active
◆ $order
◆ $auto_delete
◆ $help
◆ $has_gui
◆ $gui_url
The documentation for this class was generated from the following file: