|
| isSpam (string $type, ?string $author, ?string $email, ?string $site, ?string $ip, ?string $content, ?int $post_id, string &$status) |
|
| __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 () |
|
◆ setInfo()
Sets the filter description.
Reimplemented from dcSpamFilter.
◆ 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.
- 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 |
- Returns
- mixed
Reimplemented from dcSpamFilter.
References dcCore\app(), DC_QUERY_TIMEOUT, and netHttp\initClient().
◆ $name
$name = 'Fair Trackbacks' |
◆ $has_gui
◆ $active
◆ $order
The documentation for this class was generated from the following file: