PHP Класс XR_CcClient

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$client XMLRPC client object reference
$debug XMLRPC debug flag
$mdefs Array with methods description
$verbose Verbosity flag

Открытые методы

Метод Описание
Factory ( $mdefs, $debug, $verbose = FALSE ) : object, Factory, create object instance
XR_CcClient ( $mdefs, $debug, $verbose = FALSE ) : this Constructor - pelase DON'T CALL IT, use factory method instead
callMethod ( $method, $gettedPars ) : array, XMLRPC methods wrapper Encode XMLRPC request message, send it, receive and decode response.
ping ( $sessid = null ) : boolean | PEAR_Error Test whether the Campcaster server is reachable or not Uses xr_getVersion() to check communication and xr_loadPref to validate the session id

Описание методов

Factory() публичный статический Метод

In fact it doesn't create instance of XR_CcClient, but dynamically extend this class with set of methods based on $mdefs array (using eval function) and instantiate resulting class XR_CcClientCore instead. Each new method in this subclass accepts parameters according to $mdefs array, call wrapper callMethod(methodname, parameters) and return its result.
public static Factory ( $mdefs, $debug, $verbose = FALSE ) : object,
Результат object,

XR_CcClient() публичный Метод

@param mdefs array, hash array with methods description
public XR_CcClient ( $mdefs, $debug, $verbose = FALSE ) : this
Результат this

callMethod() публичный Метод

@param method string, method name
public callMethod ( $method, $gettedPars ) : array,
Результат array,

ping() публичный Метод

Test whether the Campcaster server is reachable or not Uses xr_getVersion() to check communication and xr_loadPref to validate the session id
public ping ( $sessid = null ) : boolean | PEAR_Error
Результат boolean | PEAR_Error TRUE on success, PEAR_Error on failure

Описание свойств

$client публичное свойство

XMLRPC client object reference
public $client

$debug публичное свойство

XMLRPC debug flag
public $debug

$mdefs публичное свойство

Array with methods description
public $mdefs

$verbose публичное свойство

Verbosity flag
public $verbose