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


PHP city::getCountryName方法代码示例

本文整理汇总了PHP中city::getCountryName方法的典型用法代码示例。如果您正苦于以下问题:PHP city::getCountryName方法的具体用法?PHP city::getCountryName怎么用?PHP city::getCountryName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在city的用法示例。


在下文中一共展示了city::getCountryName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: run

 public function run()
 {
     $user = $this->order[$this->is_emp ? 'freelancer' : 'employer'];
     //получаем общее кол-во отзывов
     $oplinks = NULL;
     $opcount = opinions::GetCounts($user['uid'], array('total'));
     if (array_sum($opcount['total']) > 0) {
         $oplinks = array('p' => getSortOpinionLinkEx('frl', "total", 1, $user['login'], zin($opcount['total']['p']), null, 0), 'n' => getSortOpinionLinkEx('frl', "total", 2, $user['login'], zin($opcount['total']['n']), null, 0), 'm' => getSortOpinionLinkEx('frl', "total", 3, $user['login'], zin($opcount['total']['m']), null, 0));
     }
     //город юзера
     $city_id = $this->order['is_meet'] == 't' && $this->order['city'] > 0 ? $this->order['city'] : $user['city'];
     $user['place_title'] = '';
     if ($city_id > 0) {
         $user['place_title'] = city::getCountryName($city_id) . ', ' . city::getCityName($city_id);
     }
     //собираем шаблон
     $this->render('t-service-order-user-profile', array('user' => $user, 'oplinks' => $oplinks));
 }
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:18,代码来源:TServiceOrderUserProfile.php

示例2: array

$uploader_field_element = array();
if (count($tservice->images)) {
    foreach ($tservice->images as $key => $image) {
        $uploader_field_element[] = array('hash' => md5($solt . $image['id'] . $tuid . $uid), 'qquuid' => $image['id'], 'src' => WDCPREFIX . '/' . $image['path'] . $image['fname']);
    }
}
$sess = __paramInit('string', NULL, 'uploader_sess', NULL);
if ($sess) {
    $files = uploader::sgetFiles($sess);
    if (count($files)) {
        foreach ($files as $file) {
            if (strpos($file['fname'], 'tiny_') === FALSE) {
                continue;
            }
            $uploader_field_element[] = array('qquuid' => $file['id'], 'src' => WDCPREFIX . '/' . $file['path'] . $file['fname']);
        }
    }
} else {
    $sess = uploader::createResource('tservices');
}
//------------------------------------------------------------------------------
$city = new city();
if (!$tservice->city) {
    $tservice->city = $user_obj->city > 0 ? $user_obj->city : 1;
}
$location_value = $city->getCountryName($tservice->city) . ": " . $city->getCityName($tservice->city);
//------------------------------------------------------------------------------
$user_phone_tservice = user_phone::getInstance()->render(user_phone::PLACE_TSERVICE);
$is_bg = true;
$inner = 'tpl.form.php';
include "../template3.php";
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:manage.php


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