interface CSpamFilter_Service


Located at : UKNOWVA_ROOT/components/com_community/libraries/spamfilter.php

Any child spamfilter service that wants to be added, should implement CSpamFilter_Service

Methods

__construct()

No description

setAuthor(string $author)

Sets the author name

setMessage(string $message)

Sets the message data

setURL(string $url = '')

Sets the url of the item

setType(string $type)

Sets the type of the message

setEmail(string $email)

Sets the author's email address

setIP(string $ip)

Sets the remote ip address

setUserAgent(string $useragent)

Sets the user agent string

setReferrer(string $referrer)

Sets the user's referrer url.

boolean
isSpam()

Sets the user agent string

Details

at line 19
__construct()

at line 26
setAuthor(string $author)

Sets the author name

Parameters

string $author The author's name to be screened

at line 33
setMessage(string $message)

Sets the message data

Parameters

string $message The message to be screened

at line 40
setURL(string $url = '')

Sets the url of the item

Parameters

string $url The URL or permalink of the item.

at line 47
setType(string $type)

Sets the type of the message

Parameters

string $type The filtering type.

at line 54
setEmail(string $email)

Sets the author's email address

Parameters

string $email The author's email address

at line 61
setIP(string $ip)

Sets the remote ip address

Parameters

string $ip The author's IP address

at line 68
setUserAgent(string $useragent)

Sets the user agent string

Parameters

string $useragent The author's user agent string.

at line 75
setReferrer(string $referrer)

Sets the user's referrer url.

Parameters

string $referrer The author's referrer.

at line 82
boolean isSpam()

Sets the user agent string

Return Value

boolean True if content is spam and false otherwise.