Dotclear 2.24
Loading...
Searching...
No Matches
dcFilterFairTrackbacks Class Reference
Inheritance diagram for dcFilterFairTrackbacks:
dcSpamFilter

Public Member Functions

 isSpam (string $type, ?string $author, ?string $email, ?string $site, ?string $ip, ?string $content, ?int $post_id, string &$status)
 
- Public Member Functions inherited from dcSpamFilter
 __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 ()
 

Data Fields

 $name = 'Fair Trackbacks'
 
 $has_gui = false
 
 $active = true
 
 $order = -10
 
- Data Fields inherited from dcSpamFilter
 $name
 
 $description
 
 $active = true
 
 $order = 100
 
 $auto_delete = false
 
 $help = null
 

Protected Member Functions

 setInfo ()
 
 setInfo ()
 

Additional Inherited Members

- Protected Attributes inherited from dcSpamFilter
 $has_gui = false
 
 $gui_url = null
 

Member Function Documentation

◆ setInfo()

setInfo ( )
protected

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$typeThe comment type (comment / trackback)
string$authorThe comment author
string$emailThe comment author email
string$siteThe comment author site
string$ipThe comment author IP
string$contentThe comment content
int$post_idThe comment post_id
string$statusThe comment status
Returns
mixed

Reimplemented from dcSpamFilter.

References dcCore\app(), DC_QUERY_TIMEOUT, and netHttp\initClient().

Field Documentation

◆ $name

$name = 'Fair Trackbacks'

◆ $has_gui

$has_gui = false

◆ $active

$active = true

◆ $order

$order = -10

The documentation for this class was generated from the following file: