本文整理汇总了PHP中CIBlockPriceTools::checkPropDirectory方法的典型用法代码示例。如果您正苦于以下问题:PHP CIBlockPriceTools::checkPropDirectory方法的具体用法?PHP CIBlockPriceTools::checkPropDirectory怎么用?PHP CIBlockPriceTools::checkPropDirectory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CIBlockPriceTools
的用法示例。
在下文中一共展示了CIBlockPriceTools::checkPropDirectory方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
if ($arProp['ID'] == $arSKU['SKU_PROPERTY_ID']) {
continue;
}
$arProp['USER_TYPE'] = (string) $arProp['USER_TYPE'];
$strPropName = '[' . $arProp['ID'] . ']' . ('' != $arProp['CODE'] ? '[' . $arProp['CODE'] . ']' : '') . ' ' . $arProp['NAME'];
if ('' == $arProp['CODE']) {
$arProp['CODE'] = $arProp['ID'];
}
$arAllOfferPropList[$arProp['CODE']] = $strPropName;
if ('F' == $arProp['PROPERTY_TYPE']) {
$arFileOfferPropList[$arProp['CODE']] = $strPropName;
}
if ('N' != $arProp['MULTIPLE']) {
continue;
}
if ('L' == $arProp['PROPERTY_TYPE'] || 'E' == $arProp['PROPERTY_TYPE'] || 'S' == $arProp['PROPERTY_TYPE'] && 'directory' == $arProp['USER_TYPE'] && CIBlockPriceTools::checkPropDirectory($arProp)) {
$arTreeOfferPropList[$arProp['CODE']] = $strPropName;
}
}
$arTemplateParameters['OFFER_ADD_PICT_PROP'] = array('PARENT' => 'VISUAL', 'NAME' => GetMessage('CP_BCT_TPL_OFFER_ADD_PICT_PROP'), 'TYPE' => 'LIST', 'MULTIPLE' => 'N', 'ADDITIONAL_VALUES' => 'N', 'REFRESH' => 'N', 'DEFAULT' => '-', 'VALUES' => $arFileOfferPropList);
$arTemplateParameters['OFFER_TREE_PROPS'] = array('PARENT' => 'VISUAL', 'NAME' => GetMessage('CP_BCT_TPL_OFFER_TREE_PROPS'), 'TYPE' => 'LIST', 'MULTIPLE' => 'Y', 'ADDITIONAL_VALUES' => 'N', 'REFRESH' => 'N', 'DEFAULT' => '-', 'VALUES' => $arTreeOfferPropList);
}
}
if ($boolCatalog) {
$arTemplateParameters['SHOW_DISCOUNT_PERCENT'] = array('PARENT' => 'VISUAL', 'NAME' => GetMessage('CP_BCT_TPL_SHOW_DISCOUNT_PERCENT'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N');
$arTemplateParameters['SHOW_OLD_PRICE'] = array('PARENT' => 'VISUAL', 'NAME' => GetMessage('CP_BCT_TPL_SHOW_OLD_PRICE'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N');
}
if (isset($arCurrentValues['VIEW_MODE']) && ('SLIDER' == $arCurrentValues['VIEW_MODE'] || 'BANNER' == $arCurrentValues['VIEW_MODE'])) {
$arTemplateParameters['ROTATE_TIMER'] = array('PARENT' => 'VISUAL', 'NAME' => GetMessage('CP_BCT_TPL_ROTATE_TIMER'), 'TYPE' => 'STRING', 'DEFAULT' => '30');
$arTemplateParameters['SHOW_PAGINATION'] = array('PARENT' => 'VISUAL', 'NAME' => GetMessage('CP_BCT_TPL_SHOW_PAGINATION'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'Y');
}