本文整理汇总了PHP中CIBlockPriceTools::highLoadInclude方法的典型用法代码示例。如果您正苦于以下问题:PHP CIBlockPriceTools::highLoadInclude方法的具体用法?PHP CIBlockPriceTools::highLoadInclude怎么用?PHP CIBlockPriceTools::highLoadInclude使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CIBlockPriceTools
的用法示例。
在下文中一共展示了CIBlockPriceTools::highLoadInclude方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getTreePropertyValues
//.........这里部分代码省略.........
if (!empty($previewPict))
{
$oneEnum['PICT'] = array(
'SRC' => $previewPict['SRC'],
'WIDTH' => intval($previewPict['WIDTH']),
'HEIGHT' => intval($previewPict['HEIGHT'])
);
}
}
if (empty($oneEnum['PICT']))
{
$oneEnum['PICT'] = $oneProperty['DEFAULT_VALUES']['PICT'];
}
}
$oneEnum['ID'] = intval($oneEnum['ID']);
$values[$oneEnum['ID']] = array(
'ID' => $oneEnum['ID'],
'NAME' => $oneEnum['NAME'],
'SORT' => intval($oneEnum['SORT']),
'PICT' => ($pictMode ? $oneEnum['PICT'] : false)
);
$valuesExist = true;
}
$values[0] = array(
'ID' => 0,
'SORT' => PHP_INT_MAX,
'NA' => true,
'NAME' => $oneProperty['DEFAULT_VALUES']['NAME'],
'PICT' => ($pictMode ? $oneProperty['DEFAULT_VALUES']['PICT'] : false)
);
}
else
{
if (null === self::$highLoadInclude)
self::$highLoadInclude = \Freetrix\Main\Loader::includeModule('highloadblock');
if (!self::$highLoadInclude)
continue;
$xmlMap = array();
$sortExist = isset($oneProperty['USER_TYPE_SETTINGS']['FIELDS_MAP']['UF_SORT']);
$directorySelect = array('ID', 'UF_NAME', 'UF_XML_ID');
$directoryOrder = array();
if ($pictMode)
{
$directorySelect[] = 'UF_FILE';
}
if ($sortExist)
{
$directorySelect[] = 'UF_SORT';
$directoryOrder['UF_SORT'] = 'ASC';
}
$directoryOrder['UF_NAME'] = 'ASC';
$sortValue = 100;
$entityDataClass = $oneProperty['USER_TYPE_SETTINGS']['ENTITY']->getDataClass();
$entityGetList = array(
'select' => $directorySelect,
'order' => $directoryOrder
);
if ($filterValuesExist)
$entityGetList['filter'] = array('=UF_XML_ID' => $propNeedValues[$oneProperty['ID']]);
$propEnums = $entityDataClass::getList($entityGetList);
while ($oneEnum = $propEnums->fetch())
{
$oneEnum['ID'] = intval($oneEnum['ID']);
$oneEnum['UF_SORT'] = ($sortExist ? intval($oneEnum['UF_SORT']) : $sortValue);