PHP Class XR_CcClient

Afficher le fichier Open project: sourcefabric/newscoop

Méthodes publiques

Свойство Type Description
$client XMLRPC client object reference
$debug XMLRPC debug flag
$mdefs Array with methods description
$verbose Verbosity flag

Méthodes publiques

Méthode Description
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

Method Details

Factory() public static méthode

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,
Résultat object,

XR_CcClient() public méthode

@param mdefs array, hash array with methods description
public XR_CcClient ( $mdefs, $debug, $verbose = FALSE ) : this
Résultat this

callMethod() public méthode

@param method string, method name
public callMethod ( $method, $gettedPars ) : array,
Résultat array,

ping() public méthode

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
Résultat boolean | PEAR_Error TRUE on success, PEAR_Error on failure

Property Details

$client public_oe property

XMLRPC client object reference
public $client

$debug public_oe property

XMLRPC debug flag
public $debug

$mdefs public_oe property

Array with methods description
public $mdefs

$verbose public_oe property

Verbosity flag
public $verbose