當前位置: 首頁>>代碼示例>>PHP>>正文


PHP city::create方法代碼示例

本文整理匯總了PHP中city::create方法的典型用法代碼示例。如果您正苦於以下問題:PHP city::create方法的具體用法?PHP city::create怎麽用?PHP city::create使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在city的用法示例。


在下文中一共展示了city::create方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __autoload

 <center>

<table style="width:1%">
  <tr>
  		
 
  </tr>
   <tr>
    <td>001</td>
    <td>:</td>
     <td>Masum</td>
      <td>:</td>
    <td>Dhaka</td>		
  
 	

  </tr>
  </center>

<?php 
function __autoload($className)
{
    $fullPath = $className . ".php";
    $finalDis = "/../../../" . str_replace("\\", "/", $fullPath);
    //echo $finalDis;
    include_once $finalDis;
}
use src\Bitm\SEIP117637\city\City;
$city = new city();
$city->create();
echo "<hr>";
開發者ID:akandshuvo,項目名稱:htdocs_basis_seip,代碼行數:31,代碼來源:create.php

示例2: run

 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     city::create(['id_city_INE' => 1, 'id_province' => 1, 'name' => 'Alegría-Dulantzi']);
     city::create(['id_city_INE' => 2, 'id_province' => 1, 'name' => 'Amurrio']);
     city::create(['id_city_INE' => 49, 'id_province' => 1, 'name' => 'Añana']);
     city::create(['id_city_INE' => 3, 'id_province' => 1, 'name' => 'Aramaio']);
     city::create(['id_city_INE' => 6, 'id_province' => 1, 'name' => 'Armiñón']);
     city::create(['id_city_INE' => 37, 'id_province' => 1, 'name' => 'Arraia-Maeztu']);
     city::create(['id_city_INE' => 8, 'id_province' => 1, 'name' => 'Arratzua-Ubarrundia']);
     city::create(['id_city_INE' => 4, 'id_province' => 1, 'name' => 'Artziniega']);
     city::create(['id_city_INE' => 9, 'id_province' => 1, 'name' => 'Asparrena']);
     city::create(['id_city_INE' => 10, 'id_province' => 1, 'name' => 'Ayala/Aiara']);
     city::create(['id_city_INE' => 11, 'id_province' => 1, 'name' => 'Baños de Ebro/Mañueta']);
     city::create(['id_city_INE' => 13, 'id_province' => 1, 'name' => 'Barrundia']);
     city::create(['id_city_INE' => 14, 'id_province' => 1, 'name' => 'Berantevilla']);
     city::create(['id_city_INE' => 16, 'id_province' => 1, 'name' => 'Bernedo']);
     city::create(['id_city_INE' => 17, 'id_province' => 1, 'name' => 'Campezo/Kanpezu']);
     city::create(['id_city_INE' => 21, 'id_province' => 1, 'name' => 'Elburgo/Burgelu']);
     city::create(['id_city_INE' => 22, 'id_province' => 1, 'name' => 'Elciego']);
     city::create(['id_city_INE' => 23, 'id_province' => 1, 'name' => 'Elvillar/Bilar']);
     city::create(['id_city_INE' => 46, 'id_province' => 1, 'name' => 'Erriberagoitia/Ribera Alta']);
     city::create(['id_city_INE' => 56, 'id_province' => 1, 'name' => 'Harana/Valle de Arana']);
     city::create(['id_city_INE' => 901, 'id_province' => 1, 'name' => 'Iruña Oka/Iruña de Oca']);
     city::create(['id_city_INE' => 27, 'id_province' => 1, 'name' => 'Iruraiz-Gauna']);
     city::create(['id_city_INE' => 19, 'id_province' => 1, 'name' => 'Kripan']);
     city::create(['id_city_INE' => 20, 'id_province' => 1, 'name' => 'Kuartango']);
     city::create(['id_city_INE' => 28, 'id_province' => 1, 'name' => 'Labastida/Bastida']);
     city::create(['id_city_INE' => 30, 'id_province' => 1, 'name' => 'Lagrán']);
     city::create(['id_city_INE' => 31, 'id_province' => 1, 'name' => 'Laguardia']);
     city::create(['id_city_INE' => 32, 'id_province' => 1, 'name' => 'Lanciego/Lantziego']);
     city::create(['id_city_INE' => 902, 'id_province' => 1, 'name' => 'Lantarón']);
     city::create(['id_city_INE' => 33, 'id_province' => 1, 'name' => 'Lapuebla de Labarca']);
     city::create(['id_city_INE' => 36, 'id_province' => 1, 'name' => 'Laudio/Llodio']);
     city::create(['id_city_INE' => 58, 'id_province' => 1, 'name' => 'Legutio']);
     city::create(['id_city_INE' => 34, 'id_province' => 1, 'name' => 'Leza']);
     city::create(['id_city_INE' => 39, 'id_province' => 1, 'name' => 'Moreda de Álava/Moreda Araba']);
     city::create(['id_city_INE' => 41, 'id_province' => 1, 'name' => 'Navaridas']);
     city::create(['id_city_INE' => 42, 'id_province' => 1, 'name' => 'Okondo']);
     city::create(['id_city_INE' => 43, 'id_province' => 1, 'name' => 'Oyón-Oion']);
     city::create(['id_city_INE' => 44, 'id_province' => 1, 'name' => 'Peñacerrada-Urizaharra']);
     city::create(['id_city_INE' => 47, 'id_province' => 1, 'name' => 'Ribera Baja/Erribera Beitia']);
     city::create(['id_city_INE' => 51, 'id_province' => 1, 'name' => 'Salvatierra/Agurain']);
     city::create(['id_city_INE' => 52, 'id_province' => 1, 'name' => 'Samaniego']);
     city::create(['id_city_INE' => 53, 'id_province' => 1, 'name' => 'San Millán/Donemiliaga']);
     city::create(['id_city_INE' => 54, 'id_province' => 1, 'name' => 'Urkabustaiz']);
     city::create(['id_city_INE' => 55, 'id_province' => 1, 'name' => 'Valdegovía/Gaubea']);
     city::create(['id_city_INE' => 57, 'id_province' => 1, 'name' => 'Villabuena de Álava/Eskuernaga']);
     city::create(['id_city_INE' => 59, 'id_province' => 1, 'name' => 'Vitoria-Gasteiz']);
     city::create(['id_city_INE' => 60, 'id_province' => 1, 'name' => 'Yécora/Iekora']);
     city::create(['id_city_INE' => 61, 'id_province' => 1, 'name' => 'Zalduondo']);
     city::create(['id_city_INE' => 62, 'id_province' => 1, 'name' => 'Zambrana']);
     city::create(['id_city_INE' => 18, 'id_province' => 1, 'name' => 'Zigoitia']);
     city::create(['id_city_INE' => 63, 'id_province' => 1, 'name' => 'Zuia']);
     city::create(['id_city_INE' => 1, 'id_province' => 2, 'name' => 'Abengibre']);
     city::create(['id_city_INE' => 2, 'id_province' => 2, 'name' => 'Alatoz']);
     city::create(['id_city_INE' => 3, 'id_province' => 2, 'name' => 'Albacete']);
     city::create(['id_city_INE' => 4, 'id_province' => 2, 'name' => 'Albatana']);
     city::create(['id_city_INE' => 5, 'id_province' => 2, 'name' => 'Alborea']);
     city::create(['id_city_INE' => 6, 'id_province' => 2, 'name' => 'Alcadozo']);
     city::create(['id_city_INE' => 7, 'id_province' => 2, 'name' => 'Alcalá del Júcar']);
     city::create(['id_city_INE' => 8, 'id_province' => 2, 'name' => 'Alcaraz']);
     city::create(['id_city_INE' => 9, 'id_province' => 2, 'name' => 'Almansa']);
     city::create(['id_city_INE' => 10, 'id_province' => 2, 'name' => 'Alpera']);
     city::create(['id_city_INE' => 11, 'id_province' => 2, 'name' => 'Ayna']);
     city::create(['id_city_INE' => 12, 'id_province' => 2, 'name' => 'Balazote']);
     city::create(['id_city_INE' => 14, 'id_province' => 2, 'name' => 'Ballestero, El']);
     city::create(['id_city_INE' => 13, 'id_province' => 2, 'name' => 'Balsa de Ves']);
     city::create(['id_city_INE' => 15, 'id_province' => 2, 'name' => 'Barrax']);
     city::create(['id_city_INE' => 16, 'id_province' => 2, 'name' => 'Bienservida']);
     city::create(['id_city_INE' => 17, 'id_province' => 2, 'name' => 'Bogarra']);
     city::create(['id_city_INE' => 18, 'id_province' => 2, 'name' => 'Bonete']);
     city::create(['id_city_INE' => 19, 'id_province' => 2, 'name' => 'Bonillo, El']);
     city::create(['id_city_INE' => 20, 'id_province' => 2, 'name' => 'Carcelén']);
     city::create(['id_city_INE' => 21, 'id_province' => 2, 'name' => 'Casas de Juan Núñez']);
     city::create(['id_city_INE' => 22, 'id_province' => 2, 'name' => 'Casas de Lázaro']);
     city::create(['id_city_INE' => 23, 'id_province' => 2, 'name' => 'Casas de Ves']);
     city::create(['id_city_INE' => 24, 'id_province' => 2, 'name' => 'Casas-Ibáñez']);
     city::create(['id_city_INE' => 25, 'id_province' => 2, 'name' => 'Caudete']);
     city::create(['id_city_INE' => 26, 'id_province' => 2, 'name' => 'Cenizate']);
     city::create(['id_city_INE' => 29, 'id_province' => 2, 'name' => 'Chinchilla de Monte-Aragón']);
     city::create(['id_city_INE' => 27, 'id_province' => 2, 'name' => 'Corral-Rubio']);
     city::create(['id_city_INE' => 28, 'id_province' => 2, 'name' => 'Cotillas']);
     city::create(['id_city_INE' => 30, 'id_province' => 2, 'name' => 'Elche de la Sierra']);
     city::create(['id_city_INE' => 31, 'id_province' => 2, 'name' => 'Férez']);
     city::create(['id_city_INE' => 32, 'id_province' => 2, 'name' => 'Fuensanta']);
     city::create(['id_city_INE' => 33, 'id_province' => 2, 'name' => 'Fuente-Álamo']);
     city::create(['id_city_INE' => 34, 'id_province' => 2, 'name' => 'Fuentealbilla']);
     city::create(['id_city_INE' => 35, 'id_province' => 2, 'name' => 'Gineta, La']);
     city::create(['id_city_INE' => 36, 'id_province' => 2, 'name' => 'Golosalvo']);
     city::create(['id_city_INE' => 37, 'id_province' => 2, 'name' => 'Hellín']);
     city::create(['id_city_INE' => 38, 'id_province' => 2, 'name' => 'Herrera, La']);
     city::create(['id_city_INE' => 39, 'id_province' => 2, 'name' => 'Higueruela']);
     city::create(['id_city_INE' => 40, 'id_province' => 2, 'name' => 'Hoya-Gonzalo']);
     city::create(['id_city_INE' => 41, 'id_province' => 2, 'name' => 'Jorquera']);
     city::create(['id_city_INE' => 42, 'id_province' => 2, 'name' => 'Letur']);
//.........這裏部分代碼省略.........
開發者ID:Grunmir,項目名稱:location-spain,代碼行數:101,代碼來源:CityTableSeeder.php


注:本文中的city::create方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。