SilverStripe\Akismet\Service\AkismetService::isSpam
Check if the comment is spam or not This is basically the core of everything. This call takes a number of arguments and characteristics about the submitted content and then returns a thumbs up or thumbs down.
Almost everything is optional, but performance can drop dramatically if you exclude certain elements. REMARK: If you are having trouble triggering you can send "viagra-test-123" as the author and it will trigger a true response, always.
Signature
public function isSpam(string[optional]
$content,
[string[optional]
$author = NULL,
[string[optional]
$email = NULL,
[string[optional]
$url = NULL,
[string[optional]
$permalink = NULL,
[string[optional]
$type = NULL]]]]] )
Parameters
$content
— object- The content that was submitted.
$author
— object- The name.
$email
— object- The email address.
$url
— object- The URL.
$permalink
— object- The permanent location of the entry
the comment was submitted to. $type
— object- The type, can be blank, comment,
trackback, pingback, or a made up
value like "registration".
Returns
- bool
- If the comment is spam true will be
returned, otherwise false.