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


PHP Country::set方法代码示例

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


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

示例1: get

 function get($Code)
 {
     $parametros = array();
     $parametros['Code'] = $Code;
     $this->bd->select($this->tabla, '*', "Code=:Code", $parametros);
     $fila = $this->bd->getRow();
     $country = new Country();
     $country->set($fila);
     return $country;
 }
开发者ID:ealvarez1990,项目名称:ludoteca,代码行数:10,代码来源:ManageCountry.php

示例2: getList

 function getList()
 {
     $this->bd->select($this->tabla, "*", "1=1", array(), "Name, Continent, Code");
     $r = array();
     while ($fila = $this->bd->getRow()) {
         $country = new Country();
         $country->set($fila);
         $r[] = $country;
     }
     return $r;
 }
开发者ID:daw2015,项目名称:plantillas,代码行数:11,代码来源:ManageCountry.php

示例3: getListCountryCityCountryLanguage

 function getListCountryCityCountryLanguage($condicion = null, $parametros = array())
 {
     if ($condicion === null) {
         $condicion = "";
     } else {
         $condicion = "where {$condicion}";
     }
     $sql = "select co.*, ci.*, cl.* \r\n                from country co \r\n                left join city ci\r\n                on co.Code = ci.CountryCode \r\n                left join countrylanguage cl \r\n                on co.Code = cl.CountryCode where {$condicion}";
     $this->bd->send($sql, $parametros);
     $r = array();
     //$contador = 0;
     while ($fila = $this->bd->getRow()) {
         $country = new Country();
         $country->set($fila);
         $city = new City();
         $city->set($fila, 15);
         $countrylanguage = new Countrylanguage();
         $countrylanguage->set($fila, 20);
         //            $r[$contador]["country"] = $country;
         //            $r[$contador]["city"] = $city;
         //            $r[$contador]["countrylanguage"] = $countrylanguage;
         //            $contador++;
         $r[] = new CountryCityCountryLanguage($country, $city, $countrylanguage);
     }
     return $r;
 }
开发者ID:Miguelfdez79,项目名称:wusuario,代码行数:26,代码来源:ManageRelations.php

示例4: Country

            </div>

            <div class="row">
                <div class="box col-md-12">
                    <div class="box-inner">
                        <div class="box-header well" data-original-title="">
                            <h2><i class="glyphicon glyphicon-edit"></i>Add/Edit Country</h2>


                        </div>
                        <div class="box-content">
                            <?php 
$id = Request::get("id");
if (is_numeric($id) && $id > 0) {
    $countryObj = new Country();
    $countryObj->set("country_id", $id);
    $result = $countryObj->getName();
    if (count($result)) {
        $row = $result[0];
        $country_id = $row['id'];
        $country_name = $row['name'];
        $country_status = $row['active'];
    }
}
?>
                            <form action="" method="POST" name="country_frm" id="country_frm">
                                <table class="table table-striped table-bordered bootstrap-datatable datatable responsive">
                                    <tr>
                                        <td><label class="control-label" for="selectError">Country</label></td>
                                        <td><div class="input-group" >
                                                <span class="input-group-addon"></span>
开发者ID:sonaljain888,项目名称:legal-lawyer1,代码行数:31,代码来源:add_country.php


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