Class Akismet
The Akismet PHP5 Class
This class takes the functionality from the Akismet WordPress plugin written
by Matt
Mullenweg and allows it to be integrated into any PHP5 application or
website.
The original plugin is available
on the Akismet website.
Usage:
$akismet = new Akismet('http://www.example.com/blog/', 'aoeu1aoue'); $akismet->setCommentAuthor($name); $akismet->setCommentAuthorEmail($email); $akismet->setCommentAuthorURL($url); $akismet->setCommentContent($comment); $akismet->setPermalink('http://www.example.com/blog/alex/someurl/'); if($akismet->isCommentSpam()) // store the comment but mark it as spam (in case of a mis-diagnosis) else // store the comment normally
Direct known subclasses
Package: cms\comments
Copyright: Alex Potsides, http://www.achingbrain.net
License: GNU General Public License
Author: Alex Potsides
Version: 0.2
Link: http://www.achingbrain.net/
Located at cms/code/sitefeatures/Akismet.php
Copyright: Alex Potsides, http://www.achingbrain.net
License: GNU General Public License
Author: Alex Potsides
Version: 0.2
Link: http://www.achingbrain.net/
Located at cms/code/sitefeatures/Akismet.php
Methods summary
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
setPermalink( string $permalink )
A permanent URL referencing the blog post the comment was submitted to. |
public
|
|
public
|
|
public
|
#
setCommentAuthorEmail( mixed $authorEmail )
The email address that the author submitted with the comment. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|