Dotclear 2.24
|
Static Public Member Functions | |
static | initFilters () |
static | isSpam (cursor $cur) |
static | trainFilters (dcBlog $blog, cursor $cur, dcRecord $rs) |
static | statusMessage (dcRecord $rs) |
static | dashboardIconTitle () |
static | dashboardHeaders () |
static | countSpam () |
static | countPublishedComments () |
static | delAllSpam (?string $beforeDate=null) |
static | getUserCode () |
static | checkUserCode (string $code) |
static | purgeOldSpam () |
Data Fields | |
const | SPAMRULE_TABLE_NAME = 'spamrule' |
Static Public Attributes | |
static | $filters |
|
static |
Initializes the filters.
References dcCore\app().
Referenced by adminCommentList\display(), adminAntispam\init(), isSpam(), statusMessage(), and trainFilters().
|
static |
Determines whether the specified cursor content is spam.
The cursor may be modified (or deleted) according to the result
cursor | $cur | The current |
References initFilters().
Train the filters with current record
References dcBlog\COMMENT_JUNK, dcBlog\COMMENT_PUBLISHED, dcRecord\exists(), and initFilters().
|
static |
Get filter status message
dcRecord | $rs | The comment record |
References dcBlog\COMMENT_JUNK, dcRecord\exists(), and initFilters().
Referenced by dcRestMethods\getCommentById().
|
static |
|
static |
|
static |
Counts the number of spam.
References dcCore\app(), and dcBlog\COMMENT_JUNK.
Referenced by dcAntispamRest\getSpamsCount(), and adminAntispam\render().
|
static |
Counts the number of published comments.
References dcCore\app(), and dcBlog\COMMENT_PUBLISHED.
Referenced by adminAntispam\render().
|
static |
Delete all spam older than a given date, else every
null | string | $beforeDate | The before date |
References dcCore\app(), dcBlog\COMMENT_JUNK, dcBlog\COMMENT_TABLE_NAME, and dcBlog\POST_TABLE_NAME.
Referenced by adminAntispam\process().
|
static |
Gets the user code (used for antispam feeds URL).
Referenced by adminAntispam\render().
|
static |
Check if a user code is valid and if so return the user ID
string | $code | The code |
|
static |
Purge old spam
const SPAMRULE_TABLE_NAME = 'spamrule' |
Referenced by dcFilterIP\__construct(), dcFilterIPv6\__construct(), and dcFilterWords\__construct().
|
static |
Referenced by adminCommentList\display(), adminAntispam\init(), and adminAntispam\process().