本文整理匯總了PHP中CList::GetAvailableTypes方法的典型用法代碼示例。如果您正苦於以下問題:PHP CList::GetAvailableTypes方法的具體用法?PHP CList::GetAvailableTypes怎麽用?PHP CList::GetAvailableTypes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CList
的用法示例。
在下文中一共展示了CList::GetAvailableTypes方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: elseif
$bVarsFromForm = true;
}
} elseif (isset($_POST["action"]) && $_POST["action"] === "type_changed") {
$bVarsFromForm = true;
} elseif ($arResult["FIELD_ID"] && isset($_POST["action"]) && $_POST["action"] === "delete") {
$obList->DeleteField($arResult["FIELD_ID"]);
$obList->Save();
//Clear components cache
$CACHE_MANAGER->ClearByTag("lists_list_" . $arIBlock["ID"]);
LocalRedirect($arResult["~LIST_FIELDS_URL"]);
} else {
//Go to lists page
LocalRedirect($arResult["~LISTS_URL"]);
}
}
$arResult["TYPES"] = $obList->GetAvailableTypes($arResult["FIELD_ID"]);
$data = array();
if ($bVarsFromForm) {
//There was an error so display form values
$data["SORT"] = $_POST["SORT"];
$data["NAME"] = $_POST["NAME"];
$data["IS_REQUIRED"] = $_POST["IS_REQUIRED"];
$data["MULTIPLE"] = $_POST["MULTIPLE"];
$data["TYPE"] = $_POST["TYPE"];
if (isset($_POST["ROW_COUNT"])) {
$data["ROW_COUNT"] = $_POST["ROW_COUNT"];
}
if (isset($_POST["COL_COUNT"])) {
$data["COL_COUNT"] = $_POST["COL_COUNT"];
}
if ($data["TYPE"] !== $arResult["FIELD"]["TYPE"]) {