当前位置: 首页>>代码示例>>PHP>>正文


PHP Gateway::setBaseClassPath方法代码示例

本文整理汇总了PHP中Gateway::setBaseClassPath方法的典型用法代码示例。如果您正苦于以下问题:PHP Gateway::setBaseClassPath方法的具体用法?PHP Gateway::setBaseClassPath怎么用?PHP Gateway::setBaseClassPath使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Gateway的用法示例。


在下文中一共展示了Gateway::setBaseClassPath方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Gateway

<?php

/**
 * JSON gateway
 */
include "./globals.php";
include "./core/json/app/Gateway.php";
$gateway = new Gateway();
$gateway->setBaseClassPath('./services/');
$gateway->service();
开发者ID:GameCrusherTechnology,项目名称:HeroTowerServer,代码行数:10,代码来源:json.php

示例2: Gateway

<?php

/**
 * XML-RPC server
 */
include "globals.php";
include "core/xmlrpc/app/Gateway.php";
$gateway = new Gateway();
$gateway->setBaseClassPath($servicesPath);
$gateway->service();
开发者ID:spoymenov,项目名称:arisgames,代码行数:10,代码来源:xmlrpc.php

示例3: disableTrace

		Disable service description from Macromedia's service browser
	  
	  - disableTrace()
		Disables remote tracing
		
	  - disableDebug()
		Stops debug info from being sent (independant of remote trace setting)
*/
include "amf-core/app/Gateway.php";
//You can set this constant appropriately to disable traces and debugging headers
//You will also have the constant available in your classes, for changing
//the mysql server info for example
define("PRODUCTION_SERVER", false);
$gateway = new Gateway();
//Set where the services classes are loaded from, *with trailing slash*
$gateway->setBaseClassPath("services/");
//Loose mode means echo'ing or whitespace in your file won't make AMFPHP choke
$gateway->setLooseMode(true);
//Read above large note for explanation of charset handling
//The main contributor (Patrick Mineault) is French,
//so don't be afraid if he forgot to turn off iconv by default!
//$gateway->setCharsetHandler("utf8_decode", "ISO-8859-1", "ISO-8859-1");
//Error types that will be rooted to the NetConnection debugger
$gateway->setErrorHandling(E_ALL ^ E_NOTICE);
//choices are php5 (SoapClient), nusoap and pear
//If you don't plan on using web services with AMFPHP,
//you can safely let this setting alone
//Note that for nusoap to work you MUST place the library under /amf-core/lib/nusoap.php
$gateway->setWebServiceHandler('php5');
//Adding an adapter mapping will make returns of the mapped typed be intercepted
//and mapped in adapters/%adapterName%Adapter.php. This works by using get_class
开发者ID:ksecor,项目名称:civicrm,代码行数:31,代码来源:gateway.php


注:本文中的Gateway::setBaseClassPath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。