本文整理汇总了PHP中BFCHelper::getTags方法的典型用法代码示例。如果您正苦于以下问题:PHP BFCHelper::getTags方法的具体用法?PHP BFCHelper::getTags怎么用?PHP BFCHelper::getTags使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BFCHelper
的用法示例。
在下文中一共展示了BFCHelper::getTags方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getOptions
/**
* Method to get a list of options for a list input.
*
* @return array An array of JHtml options.
*/
protected function getOptions()
{
$tags = BFCHelper::getTags();
$options = array();
if ($tags) {
foreach ($tags as $tag) {
$options[] = JHtml::_('select.option', $tag->TagId, $tag->Name);
}
}
$options = array_merge(parent::getOptions(), $options);
return $options;
}
示例2: intval
$db->setQuery('SELECT id FROM #__menu WHERE link LIKE ' . $db->Quote($uri . '%') . ' AND language=' . $db->Quote($language) . ' AND published = 1 LIMIT 1');
$itemId = $db->getErrorNum() ? 0 : intval($db->loadResult());
if ($itemId != 0) {
$formAction = JRoute::_('index.php?Itemid=' . $itemId . '');
} else {
$formAction = JRoute::_($uri);
}
// setting per slider prezzi
$priceScaleMin = 0;
$priceScaleMax = 300;
$priceScaleStep = 50;
//zone...
$locationZones = BFCHelper::getLocationZones();
$masterTypologies = BFCHelper::getMasterTypologies();
// elenco ulteriore filtri possibili
$merchantGroups = BFCHelper::getTags($language, "1,4");
$bookingTypes = array();
//$bookingTypes[0] = JTEXT::_('MOD_BOOKINGFORSEARCHFILTER_BOOKINGTYPES_REQUEST');
$bookingTypes[1] = JTEXT::_('MOD_BOOKINGFORSEARCHFILTER_BOOKINGTYPES_BOOK');
$offers = array();
$offers[1] = JTEXT::_('MOD_BOOKINGFORSEARCHFILTER_OFFERS_OFFER');
$pars = BFCHelper::getSearchParamsSession();
// se passo questi dati è una nuova ricerca
$masterTypeId = $pars['masterTypeId'];
$merchantCategoryId = $pars['merchantCategoryId'];
// TODO: SUSPENDED
//if (!empty($merchantCategoryId)) {
//
//// $singeMerchantCategory = BFCHelper::getMerchantCategory($merchantCategoryId);
//// $services = $singeMerchantCategory->Services;
// $services = BFCHelper::getServicesByMerchantsCategoryId($merchantCategoryId,$language);
示例3: getMerchantGroups
function getMerchantGroups()
{
$return = BFCHelper::getTags("", "1");
//getTags
if (!empty($return)) {
$return = json_encode($return);
}
echo $return;
$app = JFactory::getApplication();
$app->close();
}