本文整理汇总了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));
}
示例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";