class CAkismet implements CSpamFilter_Service


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

Properties

$_filter
$_author
$_message
$_type
$_email
$_ip
$_useragent
$_referrer

Methods

__construct()

No description

setAuthor(string $author)

Sets the current author of the object or task.

setMessage(string $message)

Sets the current message of the object or task.

setURL(string $url = '')

Sets the current url for the request

setType(string $type)

Sets the current url for the request

setEmail(string $email)

Sets the current url for the request

setIP(string $ip)

Sets the current url for the request

setUserAgent(string $useragent)

Sets the current url for the request

setReferrer(string $referrer)

Sets the current url for the request

boolean
isSpam()

Builds up the query we have and submits to the server for screening

Details

at line 21
__construct()

at line 41
setAuthor(string $author)

Sets the current author of the object or task.

Parameters

string $author The author's name to be screened

at line 51
setMessage(string $message)

Sets the current message of the object or task.

Parameters

string $message The message to be screened

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

Sets the current url for the request

Parameters

string $url The URL or permalink of the item.

at line 71
setType(string $type)

Sets the current url for the request

Parameters

string $type The filtering type.

at line 81
setEmail(string $email)

Sets the current url for the request

Parameters

string $email The author's email address

at line 91
setIP(string $ip)

Sets the current url for the request

Parameters

string $ip The author's IP address

at line 101
setUserAgent(string $useragent)

Sets the current url for the request

Parameters

string $useragent The author's user agent string.

at line 111
setReferrer(string $referrer)

Sets the current url for the request

Parameters

string $referrer The author's referrer.

at line 121
boolean isSpam()

Builds up the query we have and submits to the server for screening

Return Value

boolean True if content is spam and false otherwise.