當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。