本文整理匯總了PHP中CCatalogMeasure::Delete方法的典型用法代碼示例。如果您正苦於以下問題:PHP CCatalogMeasure::Delete方法的具體用法?PHP CCatalogMeasure::Delete怎麽用?PHP CCatalogMeasure::Delete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CCatalogMeasure
的用法示例。
在下文中一共展示了CCatalogMeasure::Delete方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
if ($_REQUEST['action_target'] == 'selected') {
$arID = array();
$dbResultList = CCatalogMeasure::getList(array($_REQUEST["by"] => $_REQUEST["order"]), $arFilter, false, false, array('ID'));
while ($arResult = $dbResultList->Fetch()) {
$arID[] = $arResult['ID'];
}
}
foreach ($arID as $ID) {
if (strlen($ID) <= 0) {
continue;
}
switch ($_REQUEST['action']) {
case "delete":
@set_time_limit(0);
$DB->StartTransaction();
if (!CCatalogMeasure::Delete($ID)) {
$DB->Rollback();
if ($ex = $APPLICATION->GetException()) {
$lAdmin->AddGroupError($ex->GetString(), $ID);
} else {
$lAdmin->AddGroupError(GetMessage("ERROR_DELETING_TYPE"), $ID);
}
} else {
$DB->Commit();
}
break;
}
}
}
$arSelect = array("ID", "MEASURE_TITLE", "SYMBOL_RUS", "SYMBOL_INTL", "SYMBOL_LETTER_INTL", "IS_DEFAULT");
if (array_key_exists("mode", $_REQUEST) && $_REQUEST["mode"] == "excel") {