本文整理汇总了PHP中BFCHelper::getSearchOnSellParamsSession方法的典型用法代码示例。如果您正苦于以下问题:PHP BFCHelper::getSearchOnSellParamsSession方法的具体用法?PHP BFCHelper::getSearchOnSellParamsSession怎么用?PHP BFCHelper::getSearchOnSellParamsSession使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BFCHelper
的用法示例。
在下文中一共展示了BFCHelper::getSearchOnSellParamsSession方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: AND
require_once $pathbase . '/helpers/htmlHelper.php';
$document = JFactory::getDocument();
$db = JFactory::getDBO();
$lang = JFactory::getLanguage()->getTag();
// i valori sono impostati dal modulo
//$XGooglePos = 45.406947;
//$YGooglePos = 11.892443;
$uri = 'index.php?option=com_bookingforconnector&view=searchonsell';
$db->setQuery('SELECT id FROM #__menu WHERE link LIKE ' . $db->Quote($uri . '%') . ' AND (language=' . $db->Quote($lang) . ' OR language=' . $db->Quote('*') . ') 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);
}
$pars = BFCHelper::getSearchOnSellParamsSession();
$contractTypeId = 0;
$categoryId = 0;
$zoneId = 0;
$pricemax;
$pricemin;
$areamin;
$areamax;
$points;
$roomsmin;
$roomsmax;
$bathsmin;
$bathsmax;
$services;
if (!empty($pars)) {
$contractTypeId = $pars['contractTypeId'] ?: 0;
示例2: populateState
protected function populateState($ordering = NULL, $direction = NULL)
{
$searchid = JRequest::getVar('searchid');
$session = JFactory::getSession();
if (JRequest::getInt('newsearch') == 1 || empty($searchid)) {
$searchid = uniqid('', true);
$params = array('searchid' => $searchid, 'unitCategoryId' => JRequest::getInt('unitCategoryId'), 'merchantId' => JRequest::getInt('merchantId', 0), 'zoneId' => JRequest::getInt('zoneId', 0), 'cityId' => JRequest::getInt('cityId', 0), 'zoneIds' => JRequest::getVar('zoneIds'), 'contractTypeId' => JRequest::getInt('contractTypeId', 0), 'areamin' => JRequest::getVar('areamin'), 'areamax' => JRequest::getVar('areamax'), 'cultureCode' => JRequest::getVar('cultureCode'), 'pricemin' => JRequest::getVar('pricemin'), 'pricemax' => JRequest::getVar('pricemax'), 'roomsmin' => JRequest::getVar('roomsmin'), 'roomsmax' => JRequest::getVar('roomsmax'), 'bedroomsmin' => JRequest::getVar('bedroomsmin'), 'bedroomsmax' => JRequest::getVar('bedroomsmax'), 'bathsmin' => JRequest::getVar('bathsmin'), 'bathsmax' => JRequest::getVar('bathsmax'), 'services' => JRequest::getVar('servicesonsell'), 'isnewbuilding' => JRequest::getVar('isnewbuilding'), 'searchType' => JRequest::getVar('searchType'), 'randomresult' => JRequest::getVar('randomresult'), 'showReserved' => JRequest::getVar('showReserved'), 'points' => JRequest::getVar('searchType') == "1" ? JRequest::getVar('points') : "", 'searchseed' => JRequest::getVar('seed'));
$this->setState('params', $params);
// saves parameters into session
BFCHelper::setSearchOnSellParamsSession($params);
} else {
// try to get params from session
$pars = BFCHelper::getSearchOnSellParamsSession();
$params = array('searchid' => $searchid, 'contractTypeId' => $pars['contractTypeId'], 'unitCategoryId' => $pars['unitCategoryId'], 'merchantId' => $pars['merchantId'], 'zoneId' => JRequest::getInt('zoneId', 0), 'cityId' => !empty($pars['cityId']) ? $pars['cityId'] : 0, 'zoneIds' => !empty($pars['zoneIds']) ? $pars['zoneIds'] : 0, 'areamin' => $pars['areamin'], 'areamax' => $pars['areamax'], 'cultureCode' => $pars['cultureCode'], 'pricemin' => $pars['pricemin'], 'pricemax' => $pars['pricemax'], 'roomsmin' => $pars['roomsmin'], 'roomsmax' => $pars['roomsmax'], 'bedroomsmin' => $pars['bedroomsmin'], 'bedroomsmax' => $pars['bedroomsmax'], 'bathsmin' => $pars['bathsmin'], 'bathsmax' => $pars['bathsmax'], 'searchType' => $pars['searchType'], 'points' => $pars['points'], 'services' => $pars['services'], 'isnewbuilding' => $pars['isnewbuilding'], 'randomresult' => $pars['randomresult'], 'showReserved' => $pars['showReserved'], 'searchseed' => $pars['searchseed'], 'filters' => JRequest::getVar('filters', !empty($pars['filters']) ? $pars['filters'] : ''));
$this->setState('params', $params);
}
$filter_order = JRequest::getCmd('filter_order');
$filter_order_Dir = JRequest::getCmd('filter_order_Dir');
return parent::populateState($filter_order, $filter_order_Dir);
}