本文整理汇总了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();
}