AkismetHttpClient
extends AkismetObject
in package
Table of Contents
Properties
- $akismetVersion : mixed
- $apiKey : mixed
- $blogUrl : mixed
- $con : mixed
- $errors : mixed
- $host : mixed
- $port : mixed
Methods
- _connect() : mixed
- _disconnect() : mixed
- AkismetHttpClient() : mixed
- errorsExist() : bool
- Check if any errors exist
- getError() : mixed
- Return a specific error message from the errors array
- getErrors() : array<string|int, string>
- Return all errors in the object
- getResponse() : mixed
- isError() : bool
- Check if a certain error exists
- setError() : void
- Add a new error to the errors array in the object
Properties
$akismetVersion
public
mixed
$akismetVersion
= '1.1'
$apiKey
public
mixed
$apiKey
$blogUrl
public
mixed
$blogUrl
$con
public
mixed
$con
$errors
public
mixed
$errors
= array()
$host
public
mixed
$host
$port
public
mixed
$port
Methods
_connect()
public
_connect() : mixed
_disconnect()
public
_disconnect() : mixed
AkismetHttpClient()
public
AkismetHttpClient(mixed $host, mixed $blogUrl, mixed $apiKey[, mixed $port = 80 ]) : mixed
Parameters
- $host : mixed
- $blogUrl : mixed
- $apiKey : mixed
- $port : mixed = 80
errorsExist()
Check if any errors exist
public
errorsExist() : bool
Return values
boolgetError()
Return a specific error message from the errors array
public
getError(string $name) : mixed
Parameters
- $name : string
-
The name of the error you want
Return values
mixed —Returns a String if the error exists, a false boolean if it does not exist
getErrors()
Return all errors in the object
public
getErrors() : array<string|int, string>
Return values
array<string|int, string>getResponse()
public
getResponse(mixed $request, mixed $path[, mixed $type = "post" ][, mixed $responseLength = 1160 ]) : mixed
Parameters
- $request : mixed
- $path : mixed
- $type : mixed = "post"
- $responseLength : mixed = 1160
isError()
Check if a certain error exists
public
isError(string $name) : bool
Parameters
- $name : string
-
The name of the error you want
Return values
boolsetError()
Add a new error to the errors array in the object
public
setError(string $name, mixed $message) : void
Parameters
- $name : string
-
A name (array key) for the error
- $message : mixed