本文整理匯總了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');
}