本文整理汇总了PHP中city::getCityIdByCountry方法的典型用法代码示例。如果您正苦于以下问题:PHP city::getCityIdByCountry方法的具体用法?PHP city::getCityIdByCountry怎么用?PHP city::getCityIdByCountry使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类city
的用法示例。
在下文中一共展示了city::getCityIdByCountry方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: preg_replace
$keywords = $_POST['pf_keywords'];
if ($keywords) {
$keywords = preg_replace('/\\s+/si', ' ', $keywords);
}
$prj_filter = new projects_filters();
$f_category = isset($_POST['pf_categofy']) ? $_POST['pf_categofy'] : '';
if ((int) $_POST['comboe_column_id'] === 1 && $_POST['comboe_db_id'] > 0) {
$f_category[1][$_POST['comboe_db_id']] = 1;
}
if ((int) $_POST['comboe_column_id'] === 0 && $_POST['comboe_db_id'] > 0) {
$f_category[0][$_POST['comboe_db_id']] = 1;
}
// Временное решение
list($f_country, $f_city) = split(": ", $_POST['location']);
$_POST['pf_country'] = country::getCountryId($f_country);
$_POST['pf_city'] = city::getCityIdByCountry($f_city, (int) $_POST['pf_country']);
if ((int) $_POST['pf_cost_from'] == 0) {
$_POST['pf_wo_budjet'] = 1;
##0028132
}
$prj_filter->Save(get_uid(), $_POST['pf_cost_from'], $_POST['pf_cost_to'], $_POST['pf_currency'], isset($_POST['pf_wo_budjet']), $f_category, $_POST['pf_country'], $_POST['pf_city'], $_POST['pf_keywords'], isset($_POST['pf_my_specs']), $rerror, $error, 0, $filter_page, $kind == 1 || $kind == 2, $_POST['pf_only_sbr'], $_POST['pf_pro_only'], $_POST['pf_verify_only'], $_POST['pf_less_offers'], $_POST['pf_end_days_from'], $_POST['pf_end_days_to'], false, 4, $_POST['pf_urgent_only'], $_POST['pf_block_only'], isset($_POST['hide_exec']));
$location = '/projects/' . ($kind != 5 ? '?kind=' . $kind : '');
break;
// Деактивация фильтра проектов
// Деактивация фильтра проектов
case "deletefilter":
if ($PDA) {
$prj_filter = new projects_filters_pda();
$prj_filter->UpdateActiveFilter(get_uid(), false);
} else {
$prj_filter = new projects_filters();