本文整理汇总了PHP中BFCHelper::setSearchOnSellParamsSession方法的典型用法代码示例。如果您正苦于以下问题:PHP BFCHelper::setSearchOnSellParamsSession方法的具体用法?PHP BFCHelper::setSearchOnSellParamsSession怎么用?PHP BFCHelper::setSearchOnSellParamsSession使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BFCHelper
的用法示例。
在下文中一共展示了BFCHelper::setSearchOnSellParamsSession方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: onsellsimilar_search_execute
function onsellsimilar_search_execute()
{
$base_url = get_site_url();
BFCHelper::setSearchOnSellParamsSession($_POST);
//echo '<PRE>';print_r($_POST);die();
wp_redirect('searchonsell');
exit;
}
示例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);
}