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


PHP Tag::myUrlDecode方法代碼示例

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


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

示例1: _setRequiredParamsToView

 protected function _setRequiredParamsToView($view)
 {
     //$this->_helper->viewRenderer->setNoRender();
     $location_id = $this->_getParam('locationid');
     $view->location = new Location($location_id);
     $view->paramsHolder = $view->location->toStdClass();
     //$this->view->paramsHolder = $this->view->location->mergeToAnotherClass($this->view->paramsHolder);
     $view->paramsHolder->locationid = $location_id;
     // Get all category ids.
     $view->paramsHolder->query = Tag::myUrlDecode($this->_getParam('query'));
     $view->paramsHolder->cat1 = Tag::myUrlDecode($this->_getParam('cat1'));
     $view->paramsHolder->cat2 = Tag::myUrlDecode($this->_getParam('cat2'));
     $view->paramsHolder->cat3 = Tag::myUrlDecode($this->_getParam('cat3'));
     $view->paramsHolder->cat4 = Tag::myUrlDecode($this->_getParam('cat4'));
     $view->paramsHolder->cat5 = Tag::myUrlDecode($this->_getParam('cat5'));
     // Get all category names  (only for display)
     $view->paramsHolder->cat1name = Tag::myUrlDecode($this->_getParam('cat1name'));
     $view->paramsHolder->cat2name = Tag::myUrlDecode($this->_getParam('cat2name'));
     $view->paramsHolder->cat3name = Tag::myUrlDecode($this->_getParam('cat3name'));
     $view->paramsHolder->cat4name = Tag::myUrlDecode($this->_getParam('cat4name'));
     $view->paramsHolder->cat5name = Tag::myUrlDecode($this->_getParam('cat5name'));
     $registry = Zend_Registry::getInstance();
     $config = $registry->get('CONFIG');
     $view->limit = $config->search->pagelimit;
     $view->offset = $this->_getParam('page');
     if (empty($view->offset)) {
         $view->offset = 0;
     } else {
         $view->offset = ($this->view->offset - 1) * $view->limit;
     }
     $view->router = Common::getRouteName();
     return $view;
 }
開發者ID:xinghao,項目名稱:shs,代碼行數:33,代碼來源:BusinessController.php

示例2: setRequiredParamsToMakeContentHeader

 protected function setRequiredParamsToMakeContentHeader()
 {
     // Used by content header.
     // Using homepage template.
     Hotspot_Plugin_ViewSetup::setUpSiteTemplate(Hotspot_Plugin_ViewSetup::FRONTENDVIEW);
     //$this->_helper->viewRenderer->setNoRender();
     $this->view->paramsHolder = new StdClass();
     $this->view->location = new Location(Tag::myUrlDecode($this->_getParam('city')), Tag::myUrlDecode($this->_getParam('state')), Tag::myUrlDecode($this->_getParam('country')), Tag::myUrlDecode($this->_getParam('region')));
     $this->view->paramsHolder = $this->view->location->mergeToAnotherClass($this->view->paramsHolder);
     $this->view->paramsHolder->query = Tag::myUrlDecode($this->_getParam('query'));
     $this->view->paramsHolder->cat1 = Tag::myUrlDecode($this->_getParam('cat1'));
     $this->view->paramsHolder->cat2 = Tag::myUrlDecode($this->_getParam('cat2'));
     $this->view->paramsHolder->cat3 = Tag::myUrlDecode($this->_getParam('cat3'));
     $this->view->paramsHolder->cat4 = Tag::myUrlDecode($this->_getParam('cat4'));
     $this->view->paramsHolder->cat5 = Tag::myUrlDecode($this->_getParam('cat5'));
     $registry = Zend_Registry::getInstance();
     $config = $registry->get('CONFIG');
     $this->view->limit = $config->search->pagelimit;
     $this->view->offset = $this->_getParam('page');
     if (empty($this->view->offset)) {
         $this->view->offset = 0;
     } else {
         $this->view->offset = ($this->view->offset - 1) * 10;
     }
     $this->view->router = Common::getRouteName();
 }
開發者ID:xinghao,項目名稱:shs,代碼行數:26,代碼來源:Action.php

示例3: _setRequiredParamsToView

 protected function _setRequiredParamsToView($view)
 {
     $view = parent::_setRequiredParamsToView($view);
     $view->paramsHolder->headingid = Tag::myUrlDecode($this->_getParam('headingid'));
     $view->paramsHolder->headingid = $view->paramsHolder->headingid ? $view->paramsHolder->headingid : $this->_cat1All;
     return $view;
 }
開發者ID:xinghao,項目名稱:shs,代碼行數:7,代碼來源:InformationController.php

示例4: _setRequiredParamsToView

 protected function _setRequiredParamsToView($view)
 {
     $view = parent::_setRequiredParamsToView($view);
     $view->paramsHolder->min = Tag::myUrlDecode($this->_getParam('min'));
     $view->paramsHolder->max = Tag::myUrlDecode($this->_getParam('max'));
     //$view->paramsHolder->cat2 = ($view->paramsHolder->cat2)?($view->paramsHolder->cat2):630;
     return $view;
 }
開發者ID:xinghao,項目名稱:shs,代碼行數:8,代碼來源:CarsController.php

示例5: _setRequiredParamsToView

 protected function _setRequiredParamsToView($view)
 {
     $view = parent::_setRequiredParamsToView($view);
     $view->paramsHolder->bed = Tag::myUrlDecode($this->_getParam('bed'));
     $view->paramsHolder->cars = Tag::myUrlDecode($this->_getParam('cars'));
     $view->paramsHolder->bath = Tag::myUrlDecode($this->_getParam('bath'));
     $view->paramsHolder->min = Tag::myUrlDecode($this->_getParam('min'));
     $view->paramsHolder->max = Tag::myUrlDecode($this->_getParam('max'));
     $view->paramsHolder->cat2 = $view->paramsHolder->cat2 ? $view->paramsHolder->cat2 : 630;
     return $view;
 }
開發者ID:xinghao,項目名稱:shs,代碼行數:11,代碼來源:RealestateController.php


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