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


PHP Country::getCountry方法代码示例

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


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

示例1: Add

 public function Add(array $params,array $country) {

     $con=Country::getCountry($country); 
     $endPoint = Http::prepare("singledomainhosting/linux/".$con."/add.json");
       
        $response = json_decode(Http::send($this->apicaller, $endPoint, $params, 'POST'));
        if (!is_object($response)) {
            throw new ResponseException(__METHOD__);
        }
        return $response;
    }
开发者ID:jinguanio,项目名称:RClubAPI_NEW,代码行数:11,代码来源:SDHLinuxPlan.php

示例2: htmlspecialchars

    $newvisitor->appendChild($xmldoc->createElement('uas', htmlspecialchars($user->agent)));
    $newvisitor->appendChild($xmldoc->createElement('uip', htmlspecialchars($user->ip)));
    $newvisitor->appendChild($xmldoc->createElement('uhost', htmlspecialchars(gethostbyaddr($user->ip))));
    $newvisitor->appendChild($xmldoc->createElement('uti', $user->time));
    $newvisitor->appendChild($xmldoc->createElement('ufam', htmlspecialchars($uaa['ua_family'])));
    $newvisitor->appendChild($xmldoc->createElement('unam', htmlspecialchars($uaa['ua_name'])));
    $newvisitor->appendChild($xmldoc->createElement('uico', htmlspecialchars($uaa['ua_icon'])));
    if ($user->type == "Robot" or $user->type == "Validator") {
        $newvisitor->appendChild($xmldoc->createElement('uurl', htmlspecialchars($uaa['ua_url'])));
    }
    $newvisitor->appendChild($xmldoc->createElement('usec', Security::isHTTPS() ? 'HTTPS' : 'HTTP'));
    $newvisitor->appendChild($xmldoc->createElement('ofam', htmlspecialchars($uaa['os_family'])));
    $newvisitor->appendChild($xmldoc->createElement('onam', htmlspecialchars($uaa['os_name'])));
    $newvisitor->appendChild($xmldoc->createElement('oico', htmlspecialchars($uaa['os_icon'])));
    $newvisitor->appendChild($xmldoc->createElement('ucoi', htmlspecialchars($country->getCountryShort())));
    $newvisitor->appendChild($xmldoc->createElement('ucon', htmlspecialchars($country->getCountry())));
    $newvisitor->appendChild($xmldoc->createElement('rkey', htmlspecialchars($ref->getKeywords())));
    $newvisitor->appendChild($xmldoc->createElement('rdom', htmlspecialchars($ref->getDomain())));
    $newvisitor->appendChild($xmldoc->createElement('host', htmlspecialchars($_SERVER['HTTP_HOST'])));
    // the requested host
    $root->appendChild($newvisitor);
    $xmldoc->formatOutput = true;
    $xmldoc->save($tmp_filename, LIBXML_NOEMPTYTAG);
    //IP Cache schreiben:
    $user->writeToCache(__DIR__ . "/" . $fstat_cache_dir . "ip");
}
//Daten ausgewertet...
//Pfade notieren
$current_folder = __DIR__ . "/" . $fstat_data_dir . "paths/" . gmdate("Y", $user->time) . "/" . gmdate("m", $user->time);
if ($dirhelper->checkExists($fstat_data_dir . "paths") == false || $dirhelper->checkExists($fstat_data_dir . "paths/" . gmdate("Y", $user->time)) == false || $dirhelper->checkExists($current_folder, true) == false) {
    return 0;
开发者ID:HostedDinner,项目名称:fstat,代码行数:31,代码来源:include.php

示例3:

        echo !empty($user['address_2']) ? $user['address_2'] . '<br />' : null;
        ?>
		<?php 
        echo $user['town'];
        ?>
<br />
		<?php 
        echo $user['county'];
        ?>
<br />
		<?php 
        echo $user['post_code'];
        ?>
<br />
		<?php 
        $country = $objCountry->getCountry($user['country']);
        echo $country['name'];
        ?>
		</p>		
	</div>
	<div style="width:50%;float:right;text-align:right;">
		<p><strong><?php 
        echo $business['name'];
        ?>
</strong><br />
		<?php 
        echo nl2br($business['address']);
        ?>
<br />
		<?php 
        echo $business['telephone'];
开发者ID:sydorenkovd,项目名称:e-com.loc,代码行数:31,代码来源:invoice.php

示例4: testGetSetCountry

 public function testGetSetCountry()
 {
     $this->country->setCountry('Great Britain');
     $this->assertEquals('Great Britain', $this->country->getCountry());
 }
开发者ID:delboy1978uk,项目名称:country,代码行数:5,代码来源:CountryTest.php

示例5: countryFilter

 public static function countryFilter(Country $country)
 {
     return array("column" => "userCountry", "value" => $country->getCountry());
 }
开发者ID:htmlgraphic,项目名称:HTMLgraphic-MVC,代码行数:4,代码来源:Member.class.inc.php

示例6: Directory

<div class="widget-box">
    <div class="widget-header">
        <h5>Details Directory (<?php 
echo $model->title;
?>
)</h5>
        <div class="widget-toolbar">
            <a data-action="settings" href="#"><i class="icon-cog"></i></a>
            <a data-action="reload" href="#"><i class="icon-refresh"></i></a>
            <a data-action="collapse" href="#"><i class="icon-chevron-up"></i></a>
            <a data-action="close" href="#"><i class="icon-remove"></i></a>
        </div>
        <div class="widget-toolbar">
            <?php 
echo CHtml::link('<i class="icon-pencil"></i>', array('update', 'id' => $model->id), array('data-rel' => 'tooltip', 'title' => 'Edit', 'data-placement' => 'bottom'));
?>
        </div>
        <div class="widget-toolbar">
            <?php 
echo CHtml::link('<i class="icon-plus"></i>', array('create'), array('data-rel' => 'tooltip', 'title' => 'Add', 'data-placement' => 'bottom'));
?>
        </div>
    </div><!--/.widget-header -->
    <div class="widget-body">
        <div class="widget-main">
            <?php 
$this->widget('zii.widgets.CDetailView', array('htmlOptions' => array('class' => 'table table-striped table-condensed table-hover'), 'data' => $model, 'attributes' => array('id', array('name' => 'category', 'type' => 'raw', 'value' => DirectoryCategory::getDirectoryCategory($model->category)), 'title', 'address', 'postcode', array('name' => 'country', 'type' => 'raw', 'value' => Country::getCountry($model->country)), array('name' => 'state', 'type' => 'raw', 'value' => State::getState($model->state)), array('name' => 'city', 'type' => 'raw', 'value' => City::getCity($model->city)), array('name' => 'district', 'type' => 'raw', 'value' => District::getDistrict($model->district)), array('name' => 'thana', 'type' => 'raw', 'value' => Thana::getThana($model->thana)), 'telephone', 'mobile', 'email', 'fax', 'website', 'details', array('name' => 'created_by', 'type' => 'raw', 'value' => UserAdmin::get_user_name($model->created_by)), array('name' => 'created_on', 'type' => 'raw', 'value' => UserAdmin::get_date_time($model->created_on)), array('name' => 'modified_by', 'type' => 'raw', 'value' => UserAdmin::get_user_name($model->modified_by)), array('name' => 'modified_on', 'type' => 'raw', 'value' => UserAdmin::get_date_time($model->modified_on)), array('name' => 'published', 'value' => $model->published ? "Yes" : "No"), 'hits')));
?>
        </div>
    </div><!--/.widget-body -->
</div><!--/.widget-box -->
开发者ID:optimosolution,项目名称:jasorbd,代码行数:31,代码来源:view.php

示例7: Thana

<div class="widget-box">
    <div class="widget-header">
        <h5>Details Thana (<?php 
echo $model->title;
?>
)</h5>
        <div class="widget-toolbar">
            <a data-action="settings" href="#"><i class="icon-cog"></i></a>
            <a data-action="reload" href="#"><i class="icon-refresh"></i></a>
            <a data-action="collapse" href="#"><i class="icon-chevron-up"></i></a>
            <a data-action="close" href="#"><i class="icon-remove"></i></a>
        </div>
        <div class="widget-toolbar">
            <?php 
echo CHtml::link('<i class="icon-pencil"></i>', array('update', 'id' => $model->id), array('data-rel' => 'tooltip', 'title' => 'Edit', 'data-placement' => 'bottom'));
?>
        </div>
        <div class="widget-toolbar">
            <?php 
echo CHtml::link('<i class="icon-plus"></i>', array('create'), array('data-rel' => 'tooltip', 'title' => 'Add', 'data-placement' => 'bottom'));
?>
        </div>
    </div><!--/.widget-header -->
    <div class="widget-body">
        <div class="widget-main">
            <?php 
$this->widget('zii.widgets.CDetailView', array('htmlOptions' => array('class' => 'table table-striped table-condensed table-hover'), 'data' => $model, 'attributes' => array('id', array('name' => 'country_id', 'type' => 'raw', 'value' => Country::getCountry($model->country_id)), array('name' => 'state_id', 'type' => 'raw', 'value' => State::getState($model->state_id)), array('name' => 'city_id', 'type' => 'raw', 'value' => City::getCity($model->city_id)), array('name' => 'district_id', 'type' => 'raw', 'value' => District::getDistrict($model->district_id)), 'title', array('name' => 'published', 'value' => $model->published ? "Yes" : "No"))));
?>
        </div>
    </div><!--/.widget-body -->
</div><!--/.widget-box -->
开发者ID:optimosolution,项目名称:jasorbd,代码行数:31,代码来源:view.php

示例8:

                                            <div class="profile-info-row">
                                                <div class="profile-info-name"> Last Online </div>

                                                <div class="profile-info-value">
                                                    <span><?php 
echo UserAdmin::get_date_time($model->lastvisitDate);
?>
</span>
                                                </div>
                                            </div>
                                            <div class="profile-info-row">
                                                <div class="profile-info-name"> Country </div>

                                                <div class="profile-info-value">
                                                    <span><?php 
echo Country::getCountry($model_profile->country_id);
?>
</span>
                                                </div>
                                            </div>
                                            <div class="profile-info-row">
                                                <div class="profile-info-name"> State </div>

                                                <div class="profile-info-value">
                                                    <span><?php 
echo State::getState($model_profile->state_id);
?>
</span>
                                                </div>
                                            </div>
                                            <div class="profile-info-row">
开发者ID:optimosolution,项目名称:jasorbd,代码行数:31,代码来源:view.php


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