class FastBroadcastHttpClient

Objects of this should be received via the FastBroadcast class sample: $httpClient = FastBroadcast::HttpClient();

 Methods

Call for API-Method VOO1_Calendar_GetEvent

GetEvent(array $params) : int

Parameters

$params

array

see API-Documentation for this method on http://www.fastbroadcast.de

Returns

intretcode: FastBroadcast::SUCCESS or an error nr

Call for API-Method VOO1_Calendar_GetEventList

GetEventList(array $params) : int

Parameters

$params

array

see API-Documentation for this method on http://www.fastbroadcast.de

Returns

intretcode: FastBroadcast::SUCCESS or an error nr

Creating an object of FastBroadcastHttpClient

GetInstance() : object

Returns

objectthe one and only instance of this class

RemoteRequest

RemoteRequest(array $params) : int

Parameters

$params

array

the params for the API-Methos call

Returns

intreturncode FastBroadcast::SUCCESS if the request was successfull handled even when the server has no Data to send

The result from the remote method call

Result(string $type) : array

Parameters

$type

string

type. By default the type is an empty string and the result array from the response is given.

Returns

arraythe returned array may be specified by the param type

function by Buoysel found at php.net

UnchunkResult(string $data) : string

Parameters

$data

string

the raw data given from the server

Returns

stringthe unchunked data

Builing the querystring from th given key-value pairs in the params-array

BuildQuery(array $params) : string

Parameters

$params

array

the params

Returns

stringquerystring

Access to FastBroadcast with CURL

RequestWith_CURL(string $query) : string

Parameters

$query

string

the query

Returns

stringthe data from the response

Access to FastBroadcast with fsockopen

RequestWith_fsockopen(string $query) : string

Parameters

$query

string

the query

Returns

stringthe data from the response

singleton! nothing to clone

__clone() 

The Constructor

__construct() 

 Properties

 

member to to build the url

$response