本文整理汇总了PHP中BaseService::init方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseService::init方法的具体用法?PHP BaseService::init怎么用?PHP BaseService::init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseService
的用法示例。
在下文中一共展示了BaseService::init方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
function init(&$server)
{
parent::init($server);
$server->register('GetFileSize', array('baseType' => 'xsd:int', 'filename' => 'xsd:string'), array('return' => 'xsd:int'), 'urn:shopexapi', 'urn:shopexapi#GetFileSize', 'rpc', 'encoded', '');
$server->register('DownloadFile', array('baseType' => 'xsd:int', 'filename' => 'xsd:string'), array(), 'urn:shopexapi', 'urn:shopexapi#DownloadFile', 'rpc', 'encoded', '');
$server->register('UploadFile', array('baseType' => 'xsd:int', 'filename' => 'xsd:string', 'append' => 'xsd:boolean'), array(), 'urn:shopexapi', 'urn:shopexapi#UploadFile', 'rpc', 'encoded', '');
$server->register('UploadGoodsImage', array('goods_id' => 'xsd:int', 'gimage_ids' => 'tns:IntegerArray'), array(), 'urn:shopexapi', 'urn:shopexapi#UploadGoodsImage', 'rpc', 'encoded', '');
}
示例2: init
function init(&$server)
{
parent::init($server);
$server->wsdl->addComplexType('Version', 'complexType', 'struct', 'all', '', array('shopver' => array('name' => 'shopver', 'type' => 'xsd:string'), 'assisver' => array('name' => 'assisver', 'type' => 'xsd:string')));
$server->register('GetVersion', array(), array('return' => 'tns:Version'), 'urn:shopexapi', 'urn:shopexapi#GetVersion', 'rpc', 'encoded', '');
$server->register('Login', array('user' => 'xsd:string', 'pass' => 'xsd:string', 'loginas' => 'xsd:int'), array('return' => 'xsd:boolean'), 'urn:shopexapi', 'urn:shopexapi#Login', 'rpc', 'encoded', '');
$server->register('GetRedirectToken', array('user' => 'xsd:string', 'pass' => 'xsd:string', 'loginas' => 'xsd:int'), array('return' => 'xsd:string'), 'urn:shopexapi', 'urn:shopexapi#GetRedirectToken', 'rpc', 'encoded', '');
}
示例3: init
function init(&$server)
{
parent::init($server);
$server->wsdl->addComplexType('ConditionItem', 'complexType', 'struct', 'all', '', array('fieldname' => array('name' => 'fieldname', 'type' => 'xsd:string'), 'comparesign' => array('name' => 'comparesign', 'type' => 'xsd:string'), 'fieldvalue' => array('name' => 'fieldvalue', 'type' => 'xsd:string'), 'joinflag' => array('name' => 'join', 'type' => 'xsd:string'), 'groupfalg' => array('name' => 'group', 'type' => 'xsd:string')));
$server->wsdl->addComplexType('ConditionItemArray', 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => 'tns:ConditionItem[]')), 'tns:ConditionItem');
$server->wsdl->addComplexType('OrderByItem', 'complexType', 'struct', 'all', '', array('fieldname' => array('name' => 'fieldname', 'type' => 'xsd:string'), 'orderby' => array('name' => 'orderby', 'type' => 'xsd:string')));
$server->wsdl->addComplexType('OrderByItemArray', 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => 'tns:OrderByItem[]')), 'tns:OrderByItem');
$server->register('GetRecordCount', array('table' => 'xsd:string', 'cndarr' => 'tns:ConditionItemArray'), array('return' => 'xsd:int'), 'urn:shopexapi', 'urn:shopexapi#GetRecordCount', 'rpc', 'encoded', '');
$server->register('DownloadRecord', array('table' => 'xsd:string', 'fields' => 'tns:StringArray', 'cndarr' => 'tns:ConditionItemArray', 'orders' => 'tns:OrderByItemArray', 'limit' => 'xsd:boolean', 'offset' => 'xsd:int', 'rowcount' => 'xsd:int', 'delimiter' => 'xsd:string', 'enclosure' => 'xsd:string'), array('return' => 'xsd:int'), 'urn:shopexapi', 'urn:shopexapi#DownloadRecord', 'rpc', 'encoded', '');
$server->register('UploadRecord', array('table' => 'xsd:string', 'fields' => 'tns:StringArray', 'guidfield' => 'xsd:string', 'idfield' => 'xsd:string', 'syncfield' => 'xsd:string', 'delimiter' => 'xsd:string', 'enclosure' => 'xsd:string'), array('return' => 'tns:SyncPack'), 'urn:shopexapi', 'urn:shopexapi#UploadRecord', 'rpc', 'encoded', '');
}
示例4: init
function init(&$server)
{
parent::init($server);
$server->register('GetPartView', array('ctl' => 'xsd:string', 'act' => 'xsd:string', 'arg' => 'xsd:string'), array('return' => 'xsd:string'), 'urn:shopexapi', 'urn:shopexapi#GetPartView', 'rpc', 'encoded', '');
$server->register('EvalModel', array('modelName' => 'xsd:string', 'methodName' => 'xsd:string', 'args' => 'tns:StringArray', 'args_desc' => 'tns:StringArray'), array('return' => 'xsd:string'), 'urn:shopexapi', 'urn:shopexapi#EvalModel', 'rpc', 'encoded', '');
}
示例5: init
function init(&$server)
{
parent::init($server);
$server->wsdl->addComplexType('ShopInfo', 'complexType', 'struct', 'all', '', array('timezone' => array('name' => 'timezone', 'type' => 'xsd:int')));
$server->register('GetShopInfo', array(), array('return' => 'tns:ShopInfo'), 'urn:shopexapi', 'urn:shopexapi#GetShopInfo', 'rpc', 'encoded', '');
}