本文整理汇总了PHP中CList::ActualizeDocumentAdminPage方法的典型用法代码示例。如果您正苦于以下问题:PHP CList::ActualizeDocumentAdminPage方法的具体用法?PHP CList::ActualizeDocumentAdminPage怎么用?PHP CList::ActualizeDocumentAdminPage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CList
的用法示例。
在下文中一共展示了CList::ActualizeDocumentAdminPage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
if ($arResult["SECTION"]) {
$arResult["SECTION_ID"] = $arResult["SECTION"]["ID"];
$arResult["SECTION_PATH"] = array();
$rsPath = CIBlockSection::GetNavChain($arResult["IBLOCK_ID"], $arResult["SECTION_ID"]);
while ($arPath = $rsPath->Fetch()) {
$arResult["SECTION_PATH"][] = array("NAME" => htmlspecialcharsex($arPath["NAME"]), "URL" => str_replace(array("#list_id#", "#section_id#", "#group_id#"), array($arIBlock["ID"], intval($arPath["ID"]), $arParams["SOCNET_GROUP_ID"]), $arParams["LIST_URL"]));
}
} else {
$arResult["SECTION_ID"] = false;
}
$tab_name = $arResult["FORM_ID"] . "_active_tab";
//Assume there was no error
$bVarsFromForm = false;
//Form submitted
if ($_SERVER["REQUEST_METHOD"] == "POST" && check_bitrix_sessid() && !$arResult["IS_SOCNET_GROUP_CLOSED"] && ($arParams["CAN_EDIT"] || $ELEMENT_ID > 0 && CIBlockElementRights::UserHasRightTo($IBLOCK_ID, $ELEMENT_ID, "element_delete"))) {
$obList->ActualizeDocumentAdminPage(str_replace(array("#list_id#", "#group_id#"), array($arResult["IBLOCK_ID"], $arParams["SOCNET_GROUP_ID"]), $arParams["~LIST_ELEMENT_URL"]));
if ($arResult["ELEMENT_ID"] && isset($_POST["action"]) && $_POST["action"] === "delete") {
if ($lists_perm >= CListPermissions::CAN_WRITE || CIBlockElementRights::UserHasRightTo($IBLOCK_ID, $ELEMENT_ID, "element_delete")) {
$DB->StartTransaction();
$APPLICATION->ResetException();
$obElement = new CIBlockElement();
if (!$obElement->Delete($arResult["ELEMENT_ID"])) {
$DB->Rollback();
if ($ex = $APPLICATION->GetException()) {
ShowError(GetMessage("CC_BLEE_DELETE_ERROR") . " " . $ex->GetString());
} else {
ShowError(GetMessage("CC_BLEE_DELETE_ERROR") . " " . GetMessage("CC_BLEE_UNKNOWN_ERROR"));
}
$bVarsFromForm = true;
} else {
$DB->Commit();