PHP 클래스 XR_CcClient

파일 보기 프로젝트 열기: sourcefabric/newscoop

공개 프로퍼티들

프로퍼티 타입 설명
$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