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


PHP unknown::getParams方法代碼示例

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


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

示例1: getReceivedData

 /**
  * 獲取消息接收數量信息
  * @param unknown $receivedVO
  * 備注:發送采用https需要修改php.ini打開extension=php_openssl.dll
  * 
  */
 public function getReceivedData($receivedVO, $revResult)
 {
     //echo "1111";
     //加密字符串
     $secretEncode = new SecretEncode();
     $authStr = $secretEncode->getBase64Encode($receivedVO->getAuthStr());
     $receivedVO->setAuth($authStr);
     //url
     $url = $this->RECEIVE_API_URL . "?" . $receivedVO->getParams();
     $header = 'Authorization: Basic ' . $receivedVO->getAuth();
     //請求頭信息
     $context = array('http' => array('method' => 'GET', 'header' => $header));
     $stream_context = stream_context_create($context);
     //echo $stream_context;
     $httpPostClient = new HttpPostClient();
     $code = 200;
     try {
         $rs = $httpPostClient->request_tools($url, $stream_context);
         //echo $rs;
     } catch (Exception $e) {
         echo $e;
         $code = 404;
     }
     //echo $rs["body"];
     $revResult->setResultStr($rs, $code);
     //echo $revResult->getResultStr();
     return $revResult;
 }
開發者ID:tiger2soft,項目名稱:travelman,代碼行數:34,代碼來源:ReportRecevied.php

示例2: iniPlugins

 /**
  * 
  * @param unknown $pageOptions
  * @param string $role
  * @param string $acl
  */
 protected function iniPlugins($pageOptions, $role = null, $acl = null)
 {
     $modul = $this->getServiceLocator()->get('contentinum_modul');
     $modul->setPlugins($this->getServiceLocator()->get('contentinum_plugin_keys'));
     $modul->setParams($pageOptions->getParams());
     $modul->setIdentity($this->getIdentity());
     $modul->setAcl($acl);
     $modul->setDefaultRole($role);
     $modul->setUrl($pageOptions->getUrl());
     $modul->setXmlHttpRequest($this->getXmlHttpRequest());
     $mapper = $this->getServiceLocator()->get('contentinum_modul_parameter');
     $modul->setModul($mapper->fetchContent($pageOptions->getParams()));
     return $modul->fetchContent();
 }
開發者ID:jochum-mediaservices,項目名稱:contentinum5.5,代碼行數:20,代碼來源:ApplicationController.php


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