Documentation

AkismetHttpClient extends AkismetObject
in package

Table of Contents

Properties

$akismetVersion  : mixed
$apiKey  : mixed
$blogUrl  : mixed
$con  : mixed
$errors  : mixed
$host  : mixed
$port  : mixed

Methods

__construct()  : mixed
_connect()  : mixed
_disconnect()  : 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'

$errors

public mixed $errors = array()

Methods

__construct()

public __construct(mixed $host, mixed $blogUrl, mixed $apiKey[, mixed $port = 80 ]) : mixed
Parameters
$host : mixed
$blogUrl : mixed
$apiKey : mixed
$port : mixed = 80

_connect()

public _connect() : mixed

_disconnect()

public _disconnect() : mixed

errorsExist()

Check if any errors exist

public errorsExist() : bool
Return values
bool

getError()

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
bool

setError()

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

        
On this page

Search results