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


PHP BFCHelper::GetServicesByIds方法代码示例

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


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

示例1: getResourceFromService

 public function getResourceFromService()
 {
     $params = $this->getState('params');
     $resourceId = $params['resourceId'];
     $resourceIdRef = $params['resourceId'];
     $options = array('path' => sprintf($this->urlResource, $resourceId), 'data' => array('$format' => 'json'));
     $url = $this->helper->getQuery($options);
     $cultureCode = JFactory::getLanguage()->getTag();
     $resource = null;
     $r = $this->helper->executeQuery($url);
     if (isset($r)) {
         $res = json_decode($r);
         //$resource = $res->d->results ?: $res->d;
         if (!empty($res->d->results)) {
             $resource = $res->d->results;
         } elseif (!empty($res->d)) {
             $resource = $res->d;
         }
         $resource->Merchant = BFCHelper::getMerchantFromServicebyId($resource->MerchantId);
         //		$resource->Services = $resource->OnSellUnit->Services;
         if (!empty($resource->ServiceIdList)) {
             $services = BFCHelper::GetServicesByIds($resource->ServiceIdList, $cultureCode);
             $resource->Services = $services;
             if (count($resource->Services) > 0) {
                 $tmpservices = array();
                 foreach ($resource->Services as $service) {
                     $tmpservices[] = $service->Name;
                 }
                 //					$services = implode(', ',$tmpservices);
             }
             $resource->Services = $services;
         }
     }
     return $resource;
 }
开发者ID:Bookingfor,项目名称:joomla-extension-v-2,代码行数:35,代码来源:onsellunit.php

示例2: array

    if (isset($merchant->DistanceFromCenter)) {
        $distanceFromCenter = $merchant->DistanceFromCenter;
    }
}
$maxCapacityPaxes = $resource->MaxCapacityPaxes;
$minCapacityPaxes = $resource->MinCapacityPaxes;
$merchantRules = "";
if (isset($merchant->Rules)) {
    $merchantRules = BFCHelper::getLanguage($merchant->Rules, $language, null, array('ln2br' => 'ln2br', 'striptags' => 'striptags'));
}
$resourceRules = "";
if (isset($resource->Rules)) {
    $resourceRules = BFCHelper::getLanguage($resource->Rules, $language, null, array('ln2br' => 'ln2br', 'striptags' => 'striptags'));
}
if (!empty($resource->ServiceIdList)) {
    $services = BFCHelper::GetServicesByIds($resource->ServiceIdList, $language);
}
/*********************implementare ********************
*/
$PlanimetryData = $resource->PlanimetryData;
$showResourcePlanimetria = !empty($PlanimetryData);
// && stristr($PlanimetryData, 'image'));
$VideoData = $resource->VideoData;
$showResourceVideo = !empty($VideoData);
//$uri  = 'index.php?option=com_bookingforconnector&view=resource&layout=ratings&resourceId=' . $resource->ResourceId;
//$route = JRoute::_($uri);
$routeRating = '';
$formRoute = '';
?>
<div class="com_bookingforconnector_resource com_bookingforconnector_resource-mt<?php 
echo $merchant->MerchantTypeId;
开发者ID:Bookingfor,项目名称:wordpress-plugin,代码行数:31,代码来源:resource.php

示例3:

        $cap = BFCHelper::getItem($addressData, 'cap');
        $comune = BFCHelper::getItem($addressData, 'comune');
        $provincia = BFCHelper::getItem($addressData, 'provincia');
    }
}
$uriMerchant = '';
$route = '';
$routeMerchant = '';
$resourceImageUrl = $base_url . '/sites/all/modules/bfi/images/default.png';
$merchantLogoPath = $base_url . '/sites/all/modules/bfi/images/default.png';
if ($merchant->LogoUrl != '') {
    $merchantLogoPath = BFCHelper::getImageUrlResized('merchant', $merchant->LogoUrl, 'merchant_logo_small_rapidview');
    $merchantLogoPathError = BFCHelper::getImageUrl('merchant', $merchant->LogoUrl, 'merchant_logo_small_rapidview');
}
if (!empty($resource->ServiceIdList)) {
    $services = BFCHelper::GetServicesByIds($resource->ServiceIdList);
}
$showdefault = false;
if (count($images) === 0) {
    $showdefault = true;
}
?>
<div style="max-width:870px;margin:auto;">
	<div class="row-fluid">
		<div class="span6">
		<?php 
if (!$showdefault) {
    ?>
			<div id="gallery" >
				<div id="sliderResource" class="flexslider">
					<ul class="slides">
开发者ID:Bookingfor,项目名称:drupal-module,代码行数:31,代码来源:resource-rapidview.tpl.php

示例4: array

	});
	//-->
	</script><!--  -->	
	<div class="com_bookingforconnector_merchantdetails-description">
		<h4 class="underlineborder"><?php 
echo JTEXT::_('COM_BOOKINGFORCONNECTOR_MERCHANTS_VIEW_MERCHANTDETAILS_DESC');
?>
</h4>
		<?php 
echo BFCHelper::getLanguage($merchant->Description, $this->language, null, array('ln2br' => 'ln2br', 'striptags' => 'striptags'));
?>
	</div>
	<?php 
$services = [];
if (!empty($merchant->ServiceIdList)) {
    $services = BFCHelper::GetServicesByIds($merchant->ServiceIdList, $this->language);
}
?>
	<?php 
if (!empty($services) && count($services) > 0) {
    ?>
	<div class="com_bookingforconnector_resource-services">
		<h4 class="underlineborder"><?php 
    echo JTEXT::_('COM_BOOKINGFORCONNECTOR_RESOURCE_VIEW_SERVICES');
    ?>
</h4>
		<?php 
    $count = 0;
    ?>
		<?php 
    foreach ($services as $service) {
开发者ID:Bookingfor,项目名称:joomla-extension,代码行数:31,代码来源:default.php


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