当前位置: 首页>>代码示例>>PHP>>正文


PHP city::GetCountryName方法代码示例

本文整理汇总了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;
 }
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:16,代码来源:TServiceFilter.php

示例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) {
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:tpl.filter.new.php


注:本文中的city::GetCountryName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。