本文整理汇总了PHP中CHTTP::urn2uri方法的典型用法代码示例。如果您正苦于以下问题:PHP CHTTP::urn2uri方法的具体用法?PHP CHTTP::urn2uri怎么用?PHP CHTTP::urn2uri使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CHTTP
的用法示例。
在下文中一共展示了CHTTP::urn2uri方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
}
}
$arInputNames["set_filter"] = true;
$arInputNames["del_filter"] = true;
$arSkip = array("AUTH_FORM" => true, "TYPE" => true, "USER_LOGIN" => true, "USER_CHECKWORD" => true, "USER_PASSWORD" => true, "USER_CONFIRM_PASSWORD" => true, "USER_EMAIL" => true, "captcha_word" => true, "captcha_sid" => true, "login" => true, "Login" => true, "backurl" => true, "ajax" => true, "mode" => true, "bxajaxid" => true, "AJAX_CALL" => true);
$arResult["FORM_ACTION"] = $clearURL;
$arResult["HIDDEN"] = array();
foreach (array_merge($_GET, $_POST) as $key => $value) {
if (!isset($arInputNames[$key]) && !isset($arSkip[$key]) && !is_array($value)) {
$arResult["HIDDEN"][] = array("CONTROL_ID" => htmlspecialcharsbx($key), "CONTROL_NAME" => htmlspecialcharsbx($key), "HTML_VALUE" => htmlspecialcharsbx($value));
}
}
if ($arParams["XML_EXPORT"] === "Y" && $arResult["SECTION"] && $arResult["SECTION"]["RIGHT_MARGIN"] - $arResult["SECTION"]["LEFT_MARGIN"] === 1) {
$exportUrl = CHTTP::urlAddParams($clearURL, array("mode" => "xml"));
$APPLICATION->AddHeadString('<meta property="ya:interaction" content="XML_FORM" />');
$APPLICATION->AddHeadString('<meta property="ya:interaction:url" content="' . CHTTP::urn2uri($exportUrl) . '" />');
}
if ($arParams["XML_EXPORT"] === "Y" && $_REQUEST["mode"] === "xml") {
$this->setFrameMode(false);
ob_start();
$this->IncludeComponentTemplate("xml");
$xml = ob_get_contents();
$APPLICATION->RestartBuffer();
while (ob_end_clean()) {
}
header("Content-Type: text/xml; charset=utf-8");
echo $APPLICATION->convertCharset($xml, LANG_CHARSET, "utf-8");
require_once $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/epilog_after.php";
die;
} elseif (isset($_REQUEST["ajax"]) && $_REQUEST["ajax"] === "y") {
$this->setFrameMode(false);
示例2:
>
<title><?php
echo $arResult["SECTION_TITLE"];
?>
</title>
<description><?php
echo $arResult["SECTION_DESCRIPTION"];
?>
</description>
<rootUrl><?php
echo CHTTP::urn2uri("/");
?>
</rootUrl>
<resource>
<fixed name="<?php
echo CHTTP::urn2uri($arResult["FORM_ACTION"]);
?>
"/>
</resource>
<filters>
<constant key="Y">
<description caption="set_filter">
<setParameter name="set_filter"/>
</description>
</constant>
<?php
foreach ($arResult["HIDDEN"] as $arItem) {
?>
<constant key="<?php
echo $arItem["HTML_VALUE"];
?>