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