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


PHP Inspekt::makeServerCage方法代碼示例

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


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

示例1: _makeCages

 /**
  * Enter description here...
  *
  * @see Inspekt_Supercage::Factory()
  * @param string  $config_file
  * @param boolean $strict
  */
 function _makeCages($config_file = NULL, $strict = TRUE)
 {
     $this->get = Inspekt::makeGetCage($config_file, $strict);
     $this->post = Inspekt::makePostCage($config_file, $strict);
     $this->cookie = Inspekt::makeCookieCage($config_file, $strict);
     $this->env = Inspekt::makeEnvCage($config_file, $strict);
     $this->files = Inspekt::makeFilesCage($config_file, $strict);
     // $this->session	= Inspekt::makeSessionCage($config_file, $strict);
     $this->server = Inspekt::makeServerCage($config_file, $strict);
 }
開發者ID:vladocar,項目名稱:inspekt,代碼行數:17,代碼來源:Supercage.php

示例2: makeCages

 /**
  * Enter description here...
  *
  * @see Inspekt\Supercage::Factory()
  * @param string $config_file
  * @param boolean $strict
  */
 protected function makeCages($config_file = null, $strict = true)
 {
     $this->get = Inspekt::makeGetCage($config_file, $strict);
     $this->post = Inspekt::makePostCage($config_file, $strict);
     $this->cookie = Inspekt::makeCookieCage($config_file, $strict);
     $this->env = Inspekt::makeEnvCage($config_file, $strict);
     $this->files = Inspekt::makeFilesCage($config_file, $strict);
     $this->server = Inspekt::makeServerCage($config_file, $strict);
 }
開發者ID:funkatron,項目名稱:inspekt,代碼行數:16,代碼來源:SuperglobalsCage.php

示例3: _makeCages

 /**
  * Enter description here...
  *
  * @see Inspekt_Supercage::Factory()
  * @param boolean $strict
  */
 function _makeCages($strict = TRUE)
 {
     $this->get = Inspekt::makeGetCage($strict);
     $this->post = Inspekt::makePostCage($strict);
     $this->cookie = Inspekt::makeCookieCage($strict);
     $this->env = Inspekt::makeEnvCage($strict);
     $this->files = Inspekt::makeFilesCage($strict);
     /**
      * Don't put session in cage as it will nullify $_SESSION and we will loose the session completely.
      * TODO: Find a way to put the session data in cage and still retain the session correctly
      */
     //$this->session= Inspekt::makeSessionCage($strict);
     $this->server = Inspekt::makeServerCage($strict);
 }
開發者ID:phill104,項目名稱:branches,代碼行數:20,代碼來源:Supercage.php

示例4: testMakeServerCage

 /**
  * 
  */
 public function testMakeServerCage()
 {
     $cage = Inspekt::makeServerCage();
     $this->assertTrue($cage instanceof Inspekt_Cage);
 }
開發者ID:vkoser,項目名稱:PlainNoteServer,代碼行數:8,代碼來源:InspektTest.php

示例5: set_include_path

<?php

/**
 * Demonstration of:
 * - helper "make*Cage()" methods to create input cage from superglobal
 * - cleanup of HTTP_*_VARS
 * - cage filter methods
 * - "Array Query" method of accessing deep keys in multidim arrays
 */
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(dirname(__FILE__)));
require_once 'Inspekt.php';
//echo "<pre>"; echo var_dump($_SERVER); echo "</pre>\n";
$serverCage = Inspekt::makeServerCage();
echo "<pre>";
echo var_dump($serverCage);
echo "</pre>\n";
echo 'Digits:' . $serverCage->getDigits('SERVER_SOFTWARE') . '<p/>';
echo 'Alpha:' . $serverCage->getAlpha('SERVER_SOFTWARE') . '<p/>';
echo 'Alnum:' . $serverCage->getAlnum('SERVER_SOFTWARE') . '<p/>';
echo 'Raw:' . $serverCage->getRaw('SERVER_SOFTWARE') . '<p/>';
echo '<pre>$_SERVER:';
echo var_dump($_SERVER);
echo "</pre>\n";
echo '<pre>HTTP_SERVER_VARS:';
echo var_dump($HTTP_SERVER_VARS);
echo "</pre>\n";
var_dump($serverCage->getAlnum('/argv/0'));
開發者ID:ekhtsasy,項目名稱:inspekt,代碼行數:27,代碼來源:filter_superglobals.php


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