本文整理匯總了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;
}
示例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();
}