Zend_Service_AkismetAkismet REST service implementation
Located in /Zend/Service/Akismet.php (line 36)
Zend_Service_Abstract | --Zend_Service_Akismet
string
$_apiKey
(line 42)
Akismet API key
string
$_blogUrl
(line 48)
Blog URL
string
$_charset
= 'UTF-8' (line 54)
Charset used for encoding
int
$_port
= 80 (line 60)
TCP/IP port to use in requests
string
$_userAgent
= 'Zend Framework/0.7.0 | Akismet/1.11' (line 66)
User Agent string to send in requests
Inherited from Zend_Service_Abstract
Zend_Service_Abstract::$_httpClient
Constructor __construct (line 75)
Constructor
getApiKey (line 115)
Retrieve API key
getBlogUrl (line 86)
Retrieve blog URL
getCharset (line 137)
Retrieve charset
getPort (line 159)
Retrieve TCP/IP port
getUserAgent (line 187)
Retrieve User Agent string
isSpam (line 314)
Check a comment for spam
Checks a comment to see if it is spam. $params should be an associative array with one or more of the following keys (unless noted, all keys are optional):
This method implements the Akismet comment-check REST method.
setUserAgent (line 201)
Set User Agent
Should be of form "Some user agent/version | Akismet/version"
submitHam (line 373)
Submit ham
Takes the same arguments as isSpam().
Submits a comment that has been falsely categorized as spam by Akismet as a false positive, telling Akismet's filters not to filter such comments as spam in the future.
Unlike submitSpam() and isSpam(), a valid API key is never necessary; as a result, this method never throws an exception (unless an exception happens with the HTTP client layer).
this method implements Akismet's submit-ham REST method.
submitSpam (line 345)
Submit spam
Takes the same arguments as isSpam().
Submits known spam content to Akismet to help train it.
This method implements Akismet's submit-spam REST method.
verifyKey (line 248)
Verify an API key
_makeApiCall (line 274)
Perform an API call
_post (line 222)
Post a request
Inherited From Zend_Service_Abstract
Zend_Service_Abstract::getHttpClient()
Zend_Service_Abstract::setHttpClient()
Documentation generated on Wed, 21 Feb 2007 11:45:39 -0800 by phpDocumentor 1.3.1