當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Gateway::disableDebug方法代碼示例

本文整理匯總了PHP中Gateway::disableDebug方法的典型用法代碼示例。如果您正苦於以下問題:PHP Gateway::disableDebug方法的具體用法?PHP Gateway::disableDebug怎麽用?PHP Gateway::disableDebug使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Gateway的用法示例。


在下文中一共展示了Gateway::disableDebug方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: isProductionMode

 /**
  * Set's AMFPHP in either debug or production mode.
  * When used with no parameter a boolean value will be returned
  * indicating the whether production mode is on or off
  *
  * @param bool $bVal
  * @return bool
  */
 public function isProductionMode($bVal = null)
 {
     if (!is_null($bVal) && is_bool($bVal)) {
         $this->productionServer = $bVal;
         if ($this->productionServer) {
             // Disable debugging, remote tracing, and service browser
             $this->gateway->disableDebug();
             // Keep the Flash/Flex IDE player from connecting to the gateway. Used for security to stop remote connections.
             $this->gateway->disableStandalonePlayer();
         }
     }
     return $this->productionServer;
 }
開發者ID:how,項目名稱:openpasl,代碼行數:21,代碼來源:AMF.php

示例2: Gateway

$gateway = new Gateway();
//Set where the services classes are loaded from, *with trailing slash*
//$servicesPath defined in globals.php
$gateway->setClassPath($servicesPath);
//Set where class mappings are loaded from (ie: for VOs)
//$voPath defined in globals.php
$gateway->setClassMappingsPath($voPath);
//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);
if (PRODUCTION_SERVER) {
    //Disable profiling, remote tracing, and service browser
    $gateway->disableDebug();
    // Keep the Flash/Flex IDE player from connecting to the gateway. Used for security to stop remote connections.
    $gateway->disableStandalonePlayer();
}
//If you are running into low-level issues with corrupt messages and
//the like, you can add $gateway->logIncomingMessages('path/to/incoming/messages/');
//and $gateway->logOutgoingMessages('path/to/outgoing/messages/'); here
//$gateway->logIncomingMessages('in/');
//$gateway->logOutgoingMessages('out/');
//Explicitly disable the native extension if it is installed
//$gateway->disableNativeExtension();
//Enable gzip compression of output if zlib is available,
//beyond a certain byte size threshold
$gateway->enableGzipCompression(25 * 1024);
//Service now
$gateway->service();
開發者ID:rdmpage,項目名稱:gbif-sdr,代碼行數:31,代碼來源:gateway.php


注:本文中的Gateway::disableDebug方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。