当前位置: 首页>>代码示例>>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;未经允许,请勿转载。