예제 #1
0
function registerGametoolResourceMethods($fullPath)
{
    $methods = array('getResource');
    foreach ($methods as $method) {
        Hessian::remoteMethod($fullPath, $method);
    }
}
 public function __construct($url, $api, $options = false)
 {
     $this->fullUrl = $url . "/" . $api . "Version";
     $this->options = $options;
     Hessian::remoteMethod($this->fullUrl, 'getSupportedVersions');
     Hessian::remoteMethod($this->fullUrl, 'getVersionInfo');
 }
예제 #3
0
function registerAdminToolMethods($url)
{
    $methods = array('sendRequestGetResponse', 'getShards', 'getApplications', 'startShard', 'stopShard', 'startApplication', 'stopApplication');
    foreach ($methods as $method) {
        Hessian::remoteMethod($url, $method);
    }
}
function registerEditionMethods($fullPath)
{
    Hessian::remoteMethod($fullPath, 'getCollectionEditions');
    Hessian::remoteMethod($fullPath, 'addEdition');
    Hessian::remoteMethod($fullPath, 'removeEdition');
    Hessian::remoteMethod($fullPath, 'getEditionsOfAccount');
    Hessian::remoteMethod($fullPath, 'addEditionToAccount');
    Hessian::remoteMethod($fullPath, 'removeEditionFromAccount');
}
예제 #5
0
function registerBillingMethods($fullPath)
{
    \Hessian::remoteMethod($fullPath, 'getAccount');
    \Hessian::remoteMethod($fullPath, 'addMoney');
    \Hessian::remoteMethod($fullPath, 'subMoney');
    \Hessian::remoteMethod($fullPath, 'subMoneyWithCurrency');
    \Hessian::remoteMethod($fullPath, 'setStatus');
    \Hessian::remoteMethod($fullPath, 'addMoneyWithTranType');
    \Hessian::remoteMethod($fullPath, 'addMoneyWithCurrency');
    \Hessian::remoteMethod($fullPath, 'addMoneyToAll');
    \Hessian::remoteMethod($fullPath, 'getAccountBonuses');
    \Hessian::remoteMethod($fullPath, 'createAccountBonus');
    \Hessian::remoteMethod($fullPath, 'removeAccountBonus');
}