PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Zend-specific Methods

While the Akismet API only specifies four methods, Zend_Service_Akismet has several additional methods that may be used for retrieving and modifying internal properties.

  • getBlogUrl() and setBlogUrl() allow you to retrieve and modify the blog URL used in requests.

  • getApiKey() and setApiKey() allow you to retrieve and modify the API key used in requests.

  • getCharset() and setCharset() allow you to retrieve and modify the character set used to make the request.

  • getPort() and setPort() allow you to retrieve and modify the TCP port used to make the request.

  • getUserAgent() and setUserAgent() allow you to retrieve and modify the HTTP user agent used to make the request. Note: this is not the user_agent used in data submitted to the service, but rather the value provided in the HTTP User-Agent header when making a request to the service.

    The value used to set the user agent should be of the form some user agent/version | Akismet/version. The default is Zend Framework/ZF-VERSION | Akismet/1.11, where ZF-VERSION is the current Zend Framework version as stored in the Zend_Framework::VERSION constant.

Zend Framework