本文整理汇总了PHP中CSaleDelivery::convertPSRelations方法的典型用法代码示例。如果您正苦于以下问题:PHP CSaleDelivery::convertPSRelations方法的具体用法?PHP CSaleDelivery::convertPSRelations怎么用?PHP CSaleDelivery::convertPSRelations使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CSaleDelivery
的用法示例。
在下文中一共展示了CSaleDelivery::convertPSRelations方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
} elseif ($DB->type == "ORACLE") {
if (!$DB->Query("ALTER TABLE B_SALE_DELIVERY_HANDLER RENAME TO B_SALE_DELIVERY_HANDLER_OLD", true)) {
$error .= "<br>" . $DB->GetErrorMessage();
}
}
if (!empty($error)) {
\CEventLog::Add(array("SEVERITY" => "ERROR", "AUDIT_TYPE_ID" => "SALE_CONVERTER_ERROR", "MODULE_ID" => "sale", "ITEM_ID" => "-", "DESCRIPTION" => $error));
}
} else {
\CEventLog::Add(array("SEVERITY" => "ERROR", "AUDIT_TYPE_ID" => "SALE_CONVERTER_ERROR", "MODULE_ID" => "sale", "ITEM_ID" => "b_sale_delivery_handler", "DESCRIPTION" => implode('\\n', $res->getErrorMessages())));
}
file_put_contents($_SERVER["DOCUMENT_ROOT"] . '/bitrix/modules/sale_convert.txt', 'CSaleDeliveryHandler::convertToNew = ' . (microtime(true) - $start) . "\n", FILE_APPEND);
}
if ($DB->TableExists("b_sale_delivery2paysystem")) {
$start = microtime(true);
$res = CSaleDelivery::convertPSRelations();
if (!$res->isSuccess()) {
\CEventLog::Add(array("SEVERITY" => "ERROR", "AUDIT_TYPE_ID" => "SALE_CONVERTER_ERROR", "MODULE_ID" => "sale", "ITEM_ID" => "b_sale_delivery2paysystem", "DESCRIPTION" => implode('\\n', $res->getErrorMessages())));
}
file_put_contents($_SERVER["DOCUMENT_ROOT"] . '/bitrix/modules/sale_convert.txt', 'CSaleDelivery::convertPSRelations= ' . (microtime(true) - $start) . "\n", FILE_APPEND);
}
} catch (Exception $e) {
\CEventLog::Add(array("SEVERITY" => "ERROR", "AUDIT_TYPE_ID" => "SALE_CONVERTER_ERROR", "MODULE_ID" => "sale", "ITEM_ID" => "-", "DESCRIPTION" => $e->getMessage()));
}
if (empty($error)) {
$message = Loc::getMessage('SALE_CONVERTER_AJAX_STEP_STATUS_CONVERT');
$result['NEXT_STEP'] = ++$ajax_step;
} else {
$message = Loc::getMessage('SALE_CONVERTER_AJAX_STEP_DELIVERY_CONVERT');
$result['ERROR'] = true;
$message .= "<br>" . $error;