当前位置: 首页>>代码示例>>PHP>>正文


PHP CIBlockElement::MkPropertySelect方法代码示例

本文整理汇总了PHP中CIBlockElement::MkPropertySelect方法的典型用法代码示例。如果您正苦于以下问题:PHP CIBlockElement::MkPropertySelect方法的具体用法?PHP CIBlockElement::MkPropertySelect怎么用?PHP CIBlockElement::MkPropertySelect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CIBlockElement的用法示例。


在下文中一共展示了CIBlockElement::MkPropertySelect方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: PrepareGetList


//.........这里部分代码省略.........
                     $arIBlockAllProps[] = $db_prop;
                 }
                 $iblock_id = false;
                 foreach ($arIBlockAllProps as $db_prop) {
                     if ($db_prop["USER_TYPE"] != "") {
                         $arUserType = CIBlockProperty::GetUserType($db_prop["USER_TYPE"]);
                         if (array_key_exists("ConvertFromDB", $arUserType)) {
                             $arIBlockConvProps["PROPERTY_" . $db_prop["ID"]] = array("ConvertFromDB" => $arUserType["ConvertFromDB"], "PROPERTY" => $db_prop);
                         }
                     }
                     $db_prop["ORIG_ID"] = $db_prop["ID"];
                     if ($db_prop["MULTIPLE"] == "Y") {
                         $arIBlockMultProps["PROPERTY_" . $db_prop["ID"]] = $db_prop;
                     }
                     $iblock_id = $db_prop["IBLOCK_ID"];
                 }
                 if ($iblock_id !== false) {
                     if (!array_key_exists($iblock_id, $arJoinProps["FPS"])) {
                         $arJoinProps["FPS"][$iblock_id] = count($arJoinProps["FPS"]);
                     }
                     $iPropCnt = $arJoinProps["FPS"][$iblock_id];
                     $sSelect .= ", FPS" . $iPropCnt . ".*";
                 }
             } elseif (substr($val, 0, 9) == "PROPERTY_") {
                 $PR_ID = strtoupper($val);
                 if (array_key_exists($PR_ID, $arDisplayedColumns)) {
                     continue;
                 }
                 $arDisplayedColumns[$PR_ID] = true;
                 $PR_ID = substr($PR_ID, 9);
                 if (preg_match("/^([^.]+)\\.([^.]+)\$/", $PR_ID, $arMatch)) {
                     $db_prop = CIBlockProperty::GetPropertyArray($arMatch[1], CIBlock::_MergeIBArrays($arFilter["IBLOCK_ID"], $arFilter["IBLOCK_CODE"]));
                     if (is_array($db_prop) && $db_prop["PROPERTY_TYPE"] == "E") {
                         CIBlockElement::MkPropertySelect($arMatch, $db_prop, $arIBlockLongProps, $arIBlockConvProps, $arJoinProps, $arIBlockMultProps, $arIBlockNumProps, $bWasGroup, $sGroupBy, $sSelect);
                     }
                 } else {
                     if ($db_prop = CIBlockProperty::GetPropertyArray($PR_ID, CIBlock::_MergeIBArrays($arFilter["IBLOCK_ID"], $arFilter["IBLOCK_CODE"]))) {
                         CIBlockElement::MkPropertySelect($PR_ID, $db_prop, $arIBlockLongProps, $arIBlockConvProps, $arJoinProps, $arIBlockMultProps, $arIBlockNumProps, $bWasGroup, $sGroupBy, $sSelect);
                     }
                 }
             } elseif (substr($val, 0, 13) == "PROPERTYSORT_") {
                 $PR_ID = strtoupper($val);
                 if (array_key_exists($PR_ID, $arDisplayedColumns)) {
                     continue;
                 }
                 $arDisplayedColumns[$PR_ID] = true;
                 $PR_ID = substr($PR_ID, 13);
                 if (preg_match("/^([^.]+)\\.([^.]+)\$/", $PR_ID, $arMatch)) {
                     $db_prop = CIBlockProperty::GetPropertyArray($arMatch[1], CIBlock::_MergeIBArrays($arFilter["IBLOCK_ID"], $arFilter["IBLOCK_CODE"]));
                     if (is_array($db_prop) && $db_prop["PROPERTY_TYPE"] == "E") {
                         CIBlockElement::MkPropertySelect($arMatch, $db_prop, $arIBlockLongProps, $arIBlockConvProps, $arJoinProps, $arIBlockMultProps, $arIBlockNumProps, $bWasGroup, $sGroupBy, $sSelect, true);
                     }
                 } else {
                     if ($db_prop = CIBlockProperty::GetPropertyArray($PR_ID, CIBlock::_MergeIBArrays($arFilter["IBLOCK_ID"], $arFilter["IBLOCK_CODE"]))) {
                         CIBlockElement::MkPropertySelect($PR_ID, $db_prop, $arIBlockLongProps, $arIBlockConvProps, $arJoinProps, $arIBlockMultProps, $arIBlockNumProps, $bWasGroup, $sGroupBy, $sSelect, true);
                     }
                 }
             } elseif ($val == "*") {
                 $bStar = true;
             } elseif (substr($val, 0, 14) == "CATALOG_GROUP_") {
                 $arAddSelectFields[] = $val;
             } elseif (substr($val, 0, 21) == "CATALOG_STORE_AMOUNT_") {
                 $arAddSelectFields[] = $val;
             } elseif (isset($arProductFields[$val])) {
                 $arAddSelectFields[] = $val;
             } elseif ($val == "RATING_TOTAL_VALUE" || $val == "RATING_TOTAL_VOTES" || $val == "RATING_TOTAL_POSITIVE_VOTES" || $val == "RATING_TOTAL_NEGATIVE_VOTES") {
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:67,代码来源:iblockelement.php


注:本文中的CIBlockElement::MkPropertySelect方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。