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


PHP Club::getAddress方法代码示例

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


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

示例1: User

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
CModule::IncludeModule("iblock");
CModule::IncludeModule("mytb");
global $USER;
$userRes = new User($USER::GetID());
$userInfo = $userRes->getInfo();
$user_props = $userRes->getProps(array("PROPERTY_CLUB"));
$clubID = intval($user_props['PROPERTY_CLUB_VALUE']);
$club = new Club($clubID);
$arFields = $club->getInfo(array("arSelect" => array("ID", "DETAIL_TEXT", "NAME", "DATE_ACTIVE_FROM", "PROPERTY_ADDRESS", "PROPERTY_TIME_WORKING", "PROPERTY_PRICE_COCKTAIL", "PROPERTY_PHONE", "PROPERTY_RATING", "PROPERTY_MUSIC", "PROPERTY_FACE", "PROPERTY_DRESS_CODE", "PROPERTY_SITE", "PROPERTY_METRO", "PROPERTY_PLAN", "PROPERTY_EMAIL_MANAGER", "PROPERTY_PRICE_COCKTAIL", "PROPERTY_AVERAGE_CHECK", "PREVIEW_PICTURE", "PROPERTY_TYPE_FACILITY")), true);
$arFile = CFile::GetFileArray($arFields["PREVIEW_PICTURE"]);
$arFields["PREVIEW_PICTURE"] = imgurl($arFile["SRC"], array("w" => 200));
$arResult['arFields'] = $arFields;
$arResult['subs']['stock'] = $club->getCountSubStocks();
$arResult['subs']['event'] = $club->getCountSubEvent();
$arResult['userInfo'] = $userInfo;
$arResult['ADDRESS'] = $club->getAddress();
$property_enums = CIBlockPropertyEnum::GetList(array("SORT" => "ASC"), array("IBLOCK_ID" => IB_CLUB_ID, "CODE" => "TYPE_FACILITY"));
while ($enum_fields = $property_enums->GetNext()) {
    $arResult["KIND_CLUB_LIST"][] = $enum_fields;
}
$property_enums = CIBlockPropertyEnum::GetList(array("SORT" => "ASC"), array("IBLOCK_ID" => IB_CLUB_ID, "CODE" => "MUSIC"));
while ($enum_fields = $property_enums->GetNext()) {
    $arResult["MUSIC_LIST"][] = $enum_fields;
}
$this->IncludeComponentTemplate();
开发者ID:nProfessor,项目名称:Mytb,代码行数:30,代码来源:component.php

示例2: intval

<?php

/**
 *
 * User: Tabota Oleg (sForge.ru)
 * Date: 20.12.12 18:54
 * File name: getinfo.php
 */
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php";
CModule::IncludeModule("iblock");
CModule::IncludeModule("mytb");
$club_id = intval($_POST["club_id"]);
$clubRes = new Club($club_id);
$clubInfo = $clubRes->getInfo(array("arSelect" => array("NAME", "PREVIEW_PICTURE", "PROPERTY_SITE", "PROPERTY_EMAIL_MANAGER", "PROPERTY_AVERAGE_CHECK", "PROPERTY_TIME_WORKING", "PROPERTY_KIND_CLUB", "PROPERTY_MUSIC", "PROPERTY_DESCR")), true);
$arFile = CFile::GetFileArray($clubInfo["PREVIEW_PICTURE"]);
$clubInfo["PREVIEW_PICTURE"] = $arFile["SRC"];
die(json_encode(array("status" => "ok", "result" => array("ID" => $clubInfo['ID'], "NAME" => $clubInfo['NAME'], "PREVIEW_PICTURE" => $clubInfo['PREVIEW_PICTURE'], "SITE" => $clubInfo['PROPERTY_SITE_VALUE'], "EMAIL_MANAGER" => $clubInfo['PROPERTY_EMAIL_MANAGER_VALUE'], "AVERAGE_CHECK" => $clubInfo['PROPERTY_AVERAGE_CHECK_VALUE'], "TIME_WORKING" => $clubInfo['PROPERTY_TIME_WORKING_VALUE'], "KIND_CLUB" => (array) $clubInfo['PROPERTY_KIND_CLUB_VALUE'], "MUSIC" => (array) $clubInfo['PROPERTY_MUSIC_VALUE'], "DESCR" => $clubInfo['PROPERTY_DESCR_VALUE'], "ADDRESS" => $clubRes->getAddress()))));
开发者ID:nProfessor,项目名称:Mytb,代码行数:17,代码来源:getinfo.php

示例3: Club

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== TRUE) {
    die;
}
CModule::IncludeModule("iblock");
CModule::IncludeModule("mytb");
$clubID = (int) $arParams['CLUB_ID'];
$club = new Club($clubID);
$arResult["ADDRESS"] = $club->getAddress();
$arResult["NAME"] = $arParams['NAME'];
if (count($arResult["ADDRESS"]) > 1) {
    $this->IncludeComponentTemplate("list");
} else {
    $this->IncludeComponentTemplate();
}
开发者ID:nProfessor,项目名称:Mytb,代码行数:16,代码来源:component.php


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