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


PHP Club::getListHaveEvent方法代码示例

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


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

示例1: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
$arFilter = array("ACTIVE" => "Y");
$arFilter["ID"] = Club::getListHaveEvent();
if (count($arFilter["ID"]) == 0) {
    $this->IncludeComponentTemplate("none");
    return;
}
$arNavStartParams = array("nPageSize" => 33, "bShowAll" => false);
$result = array();
$res = Club::getList(array("SORT" => "DESC"), $arFilter, FALSE, $arNavStartParams, array("NAME", "ID", "PREVIEW_TEXT", "PREVIEW_PICTURE", 'PROPERTY_RATING', 'PROPERTY_METRO', 'PROPERTY_TIME_WORKING', 'PROPERTY_PRICE_COCKTAIL', 'PROPERTY_CARDS'));
while ($arField = $res->Fetch()) {
    $arFile = CFile::GetFileArray($arField["PREVIEW_PICTURE"]);
    $result[] = array("ID" => $arField["ID"], "NAME" => $arField["NAME"], "PREVIEW_TEXT" => $arField["~PREVIEW_TEXT"], "PREVIEW_PICTURE" => imgurl($arFile["SRC"], array("w" => 200)), "PROPERTY_METRO_VALUE" => $arField["PROPERTY_METRO_VALUE"], "PROPERTY_RATING_VALUE" => $arField["PROPERTY_RATING_VALUE"], "PROPERTY_TIME_WORKING_VALUE" => str_replace(";", "<br/>", $arField["PROPERTY_TIME_WORKING_VALUE"]), "PROPERTY_PRICE_COCKTAIL_VALUE" => $arField["PROPERTY_PRICE_COCKTAIL_VALUE"], "PROPERTY_CARDS_VALUE" => $arField["PROPERTY_CARDS_VALUE"]);
    $clubListID[] = intval($arField["ID"]);
}
$arResult["CLUB_LIST"] = $result;
$arResult["stocksCount"] = Stocks::getCount($clubListID);
$arResult["NAV_STRING"] = $res->GetPageNavStringEx($navComponentObject, "", "modern");
//$arResult["NAV"]=$res->NavPrint("События", false, "text","/include/paginator/home.php");;
$this->IncludeComponentTemplate();
开发者ID:nProfessor,项目名称:Mytb,代码行数:24,代码来源:component.php

示例2: switch

         $arFilter["ID"] = Club::getListHaveStocks();
         break;
     case "false":
         $arFilter["!ID"] = Club::getListHaveStocks();
         break;
     default:
         break;
 }
 switch ($_GET["EVENT"]) {
     case "true":
         $EVENT_ID_LIST = is_array($arFilter["ID"]) ? $arFilter["ID"] : array();
         $arFilter["ID"] = array_merge($EVENT_ID_LIST, Club::getListHaveEvent());
         break;
     case "false":
         $EVENT_ID_LIST = is_array($arFilter["!ID"]) ? $arFilter["!ID"] : array();
         $arFilter["!ID"] = array_merge($EVENT_ID_LIST, Club::getListHaveEvent());
         break;
     default:
         break;
 }
 $arNavStartParams = array("nPageSize" => 33, "bShowAll" => false);
 $result = array();
 $res = Club::getList(array("SORT" => "DESC"), $arFilter, FALSE, $arNavStartParams, array("NAME", "ID", "PREVIEW_TEXT", "PREVIEW_PICTURE", 'PROPERTY_RATING', 'PROPERTY_METRO', 'PROPERTY_TIME_WORKING', 'PROPERTY_PRICE_COCKTAIL', 'PROPERTY_CARDS'));
 while ($arField = $res->Fetch()) {
     $arFile = CFile::GetFileArray($arField["PREVIEW_PICTURE"]);
     $result[] = array("ID" => $arField["ID"], "NAME" => $arField["NAME"], "PREVIEW_TEXT" => $arField["~PREVIEW_TEXT"], "PREVIEW_PICTURE" => imgurl($arFile["SRC"], array("w" => 200)), "PROPERTY_METRO_VALUE" => $arField["PROPERTY_METRO_VALUE"], "PROPERTY_RATING_VALUE" => $arField["PROPERTY_RATING_VALUE"], "PROPERTY_TIME_WORKING_VALUE" => str_replace(";", "<br/>", $arField["PROPERTY_TIME_WORKING_VALUE"]), "PROPERTY_PRICE_COCKTAIL_VALUE" => $arField["PROPERTY_PRICE_COCKTAIL_VALUE"], "PROPERTY_CARDS_VALUE" => $arField["PROPERTY_CARDS_VALUE"]);
     $clubListID[] = intval($arField["ID"]);
 }
 $arResult["CLUB_LIST"] = $result;
 $arResult["stocksCount"] = Stocks::getCount($clubListID);
 $arResult["NAV_STRING"] = $res->GetPageNavStringEx($navComponentObject, "", "modern");
开发者ID:nProfessor,项目名称:Mytb,代码行数:31,代码来源:component.php


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