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


PHP Zend_Controller_Request_Http::__construct方法代碼示例

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


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

示例1: __construct

 public function __construct($uri = null)
 {
     if (null === $uri) {
         $uri = 'http://framework.zend.com/foo/bar/baz/2';
     }
     parent::__construct($uri);
 }
開發者ID:jorgenils,項目名稱:zend-framework,代碼行數:7,代碼來源:RouterTest.php

示例2: __construct

 public function __construct($uri = null)
 {
     $this->_var = new Zenmondo_Controller_Request_Http_Var();
     // default ...?
     $this->setVarCheckEncoding(mb_internal_encoding());
     return parent::__construct($uri);
 }
開發者ID:sasezaki,項目名稱:zf-exts,代碼行數:7,代碼來源:Http.php

示例3: clone

 function __construct(array $vars = null, $method = null, $uri = null)
 {
     if (is_string($uri)) {
         $saved = $_SERVER['REQUEST_URI'];
         $_SERVER['REQUEST_URI'] = $uri;
         parent::__construct(null);
         $_SERVER['REQUEST_URI'] = $saved;
     } else {
         parent::__construct();
     }
     if ($method !== null) {
         $this->_method = $method;
     }
     $this->setParamSources(array($this->getMethod() == self::METHOD_POST ? '_POST' : '_GET'));
     if ($vars !== null) {
         if ($vars instanceof Am_Request) {
             throw new Am_Exception_InternalError("Could not initialize Am_Request with Am_Request, use clone()");
         }
         $this->_vars = (array) $vars;
         $this->setParamSources(array(self::USE_VARS));
     } elseif (get_magic_quotes_gpc()) {
         // array $vars must be already escaped if we get it above
         if ($this->getMethod() == self::METHOD_POST) {
             $_POST = self::ss($_POST);
         } else {
             $_GET = self::ss($_GET);
         }
     }
 }
開發者ID:subashemphasize,項目名稱:test_site,代碼行數:29,代碼來源:Request.php

示例4: __construct

 public function __construct($uri = null)
 {
     parent::__construct($uri);
     $names = Mage::getConfig()->getNode(self::XML_NODE_DIRECT_FRONT_NAMES);
     if ($names) {
         $this->_directFrontNames = $names->asArray();
     }
 }
開發者ID:jauderho,項目名稱:magento-mirror,代碼行數:8,代碼來源:Http.php

示例5: __construct

 /**
  * Constructor
  *
  * If a $uri is passed, the object will attempt to populate itself using
  * that information.
  *
  * @param string|Zend_Uri $uri
  * @return void
  * @throws Zend_Controller_Request_Exception when invalid URI passed
  */
 public function __construct($uri = null)
 {
     //重新設置key
     $this->setControllerKey(self::ZEND_CTL_KEY);
     $this->setActionKey(self::ZEND_ACT_KEY);
     $this->setModuleKey(self::ZEND_MOD_KEY);
     parent::__construct($uri);
 }
開發者ID:BGCX067,項目名稱:f0110abdd74447aa81880248fa8830b6-svn-to-git,代碼行數:18,代碼來源:Http.php

示例6: __construct

 public function __construct($uri = null)
 {
     parent::__construct($uri);
     $names = array();
     //direct front names
     if ($names) {
         $this->_directFrontNames = $names->asArray();
     }
 }
開發者ID:hettema,項目名稱:Stages,代碼行數:9,代碼來源:Http.php

示例7: __construct

 /**
  * Modify pathInfo: strip down the front name and query parameters.
  *
  * @param \Magento\Framework\App\AreaList $areaList
  * @param \Magento\Framework\Config\ScopeInterface $configScope
  * @param null|string|\Zend_Uri $uri
  */
 public function __construct(\Magento\Framework\App\AreaList $areaList, \Magento\Framework\Config\ScopeInterface $configScope, $uri = null)
 {
     parent::__construct($uri);
     $areaFrontName = $areaList->getFrontName($configScope->getCurrentScope());
     $this->_pathInfo = $this->_requestUri;
     /** Remove base url and area from path */
     $this->_pathInfo = preg_replace("#.*?/{$areaFrontName}/?#", '/', $this->_pathInfo);
     /** Remove GET parameters from path */
     $this->_pathInfo = preg_replace('#\\?.*#', '', $this->_pathInfo);
 }
開發者ID:Atlis,項目名稱:docker-magento2,代碼行數:17,代碼來源:Request.php

示例8: __construct

 public function __construct($uri = null)
 {
     if (null === $uri) {
         $uri = 'http://localhost/foo/bar/baz/2';
     }
     $uri = Zend_Uri_Http::fromString($uri);
     $this->_host = $uri->getHost();
     $this->_port = $uri->getPort();
     parent::__construct($uri);
 }
開發者ID:JeancarloPerez,項目名稱:booking-system,代碼行數:10,代碼來源:ChainTest.php

示例9: __construct

 /**
  * Constructor
  *
  * If a $uri is passed, the object will attempt to populate itself using
  * that information.
  * Override parent class to allow object instance get via Mage::getSingleton()
  *
  * @param string|Zend_Uri $uri
  */
 public function __construct($uri = null)
 {
     parent::__construct($uri ? $uri : null);
 }
開發者ID:barneydesmond,項目名稱:propitious-octo-tribble,代碼行數:13,代碼來源:Request.php

示例10: __construct

 /**
  * @param \Magento\Framework\App\Route\ConfigInterface $routeConfig
  * @param PathInfoProcessorInterface $pathInfoProcessor
  * @param \Magento\Framework\Stdlib\CookieManager $cookieManager
  * @param string $uri
  * @param array $directFrontNames
  */
 public function __construct(\Magento\Framework\App\Route\ConfigInterface $routeConfig, PathInfoProcessorInterface $pathInfoProcessor, \Magento\Framework\Stdlib\CookieManager $cookieManager, $uri = null, $directFrontNames = array())
 {
     $this->_routeConfig = $routeConfig;
     $this->_directFrontNames = $directFrontNames;
     parent::__construct($uri);
     $this->_pathInfoProcessor = $pathInfoProcessor;
     $this->_cookieManager = $cookieManager;
 }
開發者ID:,項目名稱:,代碼行數:15,代碼來源:

示例11: __construct

 public function __construct($uri = null)
 {
     $this->_restMappings = $this->_getRestMappings();
     parent::__construct($uri);
 }
開發者ID:nstapelbroek,項目名稱:Glitch_Lib,代碼行數:5,代碼來源:Rest.php


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