本文整理汇总了PHP中city::GetCountryName方法的典型用法代码示例。如果您正苦于以下问题:PHP city::GetCountryName方法的具体用法?PHP city::GetCountryName怎么用?PHP city::GetCountryName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类city
的用法示例。
在下文中一共展示了city::GetCountryName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getCityTitle
/**
* Возвращает название текущего населённого пункта.
*
* @return mixed
*/
public function getCityTitle()
{
if (is_null($this->_city)) {
$this->_city = '';
if ($this->filter->city) {
$cityModel = new city();
$this->_city = $cityModel->GetCountryName($this->filter->city) . ': ' . $cityModel->getCityName($this->filter->city);
}
}
return $this->_city;
}
示例2: elseif
// Плюс должны быть включены заранее все xajax функции, которые тут используются.
if (!$uid || is_emp()) {
if ($filter_page != 0) {
return 0;
}
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/country.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/city.php";
$has_hidd = TRUE;
$filter_categories = professions::GetAllGroupsLite(TRUE);
//$filter_countries = country::GetCountries();
//if ($filter['country']) {$filter_cities = city::GetCities($filter['country']);}
if ($filter['city']) {
$location_selector = "drop_down_default_{$filter['city']} multi_drop_down_default_column_1";
$location_value = city::GetCountryName($filter['city']) . ": " . city::getCityName($filter['city']);
} elseif ($filter['country']) {
$location_selector = "drop_down_default_{$filter['country']} multi_drop_down_default_column_0";
$location_value = country::getCountryName($filter['country']) . ": Все города";
}
if (!$_SESSION['ph'] && !$_SESSION['top_payed']) {
$has_hidd = false;
// скрываем блок если нечего скрывать
}
if (!$filter) {
$filter = array('user_id' => $uid, 'cost_from' => '', 'cost_to' => '', 'currency' => 2, 'wo_cost' => 't', 'country' => 0, 'city' => 0, 'keywords' => '', 'categories' => array());
}
if ($filter_params && is_array($filter_params)) {
$filter_inputs = '';
$filter_query = '';
foreach ($filter_params as $pn => $pv) {