本文整理匯總了PHP中Bitrix\Sale\Order::getAllFields方法的典型用法代碼示例。如果您正苦於以下問題:PHP Order::getAllFields方法的具體用法?PHP Order::getAllFields怎麽用?PHP Order::getAllFields使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Bitrix\Sale\Order
的用法示例。
在下文中一共展示了Order::getAllFields方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: explode
$arFilter["=PROP_" . $propIterator . ".ORDER_PROPS_ID"] = $key;
if (isset($filterOrderProps["%PROPERTY_VALUE_" . $key])) {
$arFilter["%PROP_" . $propIterator . ".VALUE"] = $filterOrderPropValue[$key];
} else {
$arFilter["PROP_" . $propIterator . ".VALUE"] = $filterOrderPropValue[$key];
}
}
}
$shownFieldsList = COption::GetOptionString("sale", "order_list_fields", "ID,USER,PAY_SYSTEM,PRICE,STATUS,PAYED,PS_STATUS,CANCELED,BASKET");
$arShownFieldsList = explode(",", $shownFieldsList);
$arShownFieldsParams = array();
$aliasFields = array();
$arSelectFields = array("PAYED");
$ind = -1;
$aliasFieldsList = \Bitrix\Sale\Compatible\OrderCompatibility::getAliasFields();
$alreadyUsedFields = \Bitrix\Sale\Order::getAllFields();
foreach ($aliasFieldsList as $fieldName => $fieldAlias) {
if (!in_array($fieldName, $alreadyUsedFields)) {
$aliasFields[$fieldName] = $fieldAlias;
}
}
foreach ($GLOBALS["AVAILABLE_ORDER_FIELDS"] as $key => $value) {
if (in_array($key, $arShownFieldsList)) {
$ind++;
$arShownFieldsParams[$ind] = $value;
$arShownFieldsParams[$ind]["KEY"] = $key;
$arFields_tmp = array();
if (strlen($value["SELECT"]) > 0) {
$arFields_tmp = explode(",", $value["SELECT"]);
}
$arShownFieldsParams[$ind]["SHOW"] = $arFields_tmp;