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


PHP Table::__construct方法代码示例

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


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

示例1: array

 function __construct()
 {
     $this->table = 'usuario';
     $this->fields = array('nombre', 'password', 'nivel');
     $this->level = 10;
     parent::__construct();
 }
开发者ID:RamonCidL,项目名称:Carrilanas,代码行数:7,代码来源:Usuario.php

示例2: __construct

 public function __construct($prenom = "", $nom = "", $ddn = "", $id = 0)
 {
     parent::__construct();
     $this->prenom = $prenom;
     $this->nom = $nom;
     $this->ddn = $ddn;
 }
开发者ID:HelleboidQ,项目名称:test,代码行数:7,代码来源:EleveTable.class.php

示例3: __construct

 public function __construct(array $data = array())
 {
     parent::__construct($data);
     if ($this->token == '') {
         $this->token = Utils::genRandom(30);
     }
 }
开发者ID:BackupTheBerlios,项目名称:frameorm-svn,代码行数:7,代码来源:UserToken.class.php

示例4: __construct

 public function __construct($matiere = "", $eleve = "", $note = "", $coeff = "", $id = 0)
 {
     parent::__construct();
     $this->matiere = $matiere;
     $this->eleve = $eleve;
     $this->note = $note;
     $this->date = $date;
 }
开发者ID:HelleboidQ,项目名称:test,代码行数:8,代码来源:NoteTable.class.php

示例5: array

 function __construct()
 {
     $this->table = 'usuario';
     $this->formTemplate = 'loginForm.tpl';
     $this->listTemplate = '';
     $this->fields = array('nombre', 'password', 'nivel');
     $this->level = 0;
     parent::__construct();
 }
开发者ID:RamonCidL,项目名称:Carrilanas,代码行数:9,代码来源:Logger.php

示例6: array

 function __construct()
 {
     $this->table = 'compraventa';
     $this->formTemplate = 'CompraVentaForm.tpl';
     $this->listTemplate = 'CompraVentaList.tpl';
     $this->fields = array('precio', 'categoria', 'descripcion', 'foto', 'fecha', 'usuario_id');
     $this->level = 0;
     parent::__construct();
 }
开发者ID:NataliaFigueiras,项目名称:carrilanas,代码行数:9,代码来源:CompraVenta.php

示例7: __construct

 /**
  * GridInput currently provides these options for configuration:
  *
  * 'field_name' - Name of the field the child fields will live under in POST,
  *     also is set as the table's HTML ID
  * 'reorder' - Whether or not to allow users to reorder the rows in this Grid
  * 'grid_min_rows' - Minimum number of rows this Grid should accept
  * 'grid_max_rows' - Maximum number of rows this Grid should accept
  *
  * The rest of the config items have good defaults for use in Grid, it's
  * probably best not to set any other config items.
  *
  * @param	array 	$config		See Table constructor for options
  * @param	object 	$cp			EE CP library, used for loading assets
  * @param	object 	$ee_config	EE config library, used for loading assets
  * @param	object 	$javascript	EE javascript library, used for loading assets
  */
 public function __construct($config = array(), $cp = NULL, $ee_config = NULL, $javascript = NULL)
 {
     $this->cp = $cp;
     $this->ee_config = $ee_config;
     $this->javascript = $javascript;
     // These should be our default to properly initialize a Table class
     // for use as a Grid input
     $defaults = array('limit' => 0, 'sortable' => FALSE, 'grid_input' => TRUE, 'reorder' => TRUE, 'field_name' => 'grid', 'grid_min_rows' => 0, 'grid_max_rows' => '');
     parent::__construct(array_merge($defaults, $config));
 }
开发者ID:vigm,项目名称:advancedMD,代码行数:27,代码来源:GridInput.php

示例8: __construct

 /**
  * Construcs Table model from class
  * 
  * @param string $className
  */
 public function __construct($className)
 {
     $this->cls = $className;
     $this->anns = $className::getForDatabaseProperties();
     parent::__construct($className::getTable());
     // parse
     $this->findColumns();
     $this->findForeignKeys();
     $this->findIndexes();
 }
开发者ID:stenvala,项目名称:deco-essentials,代码行数:15,代码来源:TableForClass.php

示例9: MarcoPolo

 function MarcoPolo()
 {
     // Your global variables labels:
     //  Here, you can assign labels to global variables you are using for this game.
     //  You can use any number of global variables with IDs between 10 and 99.
     //  If your game has options (variants), you also have to associate here a label to
     //  the corresponding ID in gameoptions.inc.php.
     // Note: afterwards, you can get/set the global variables with getGameStateValue/setGameStateInitialValue/setGameStateValue
     parent::__construct();
     self::initGameStateLabels(array());
 }
开发者ID:rcitaliano,项目名称:MarcoPolo,代码行数:11,代码来源:marcopolo.game.php

示例10: __construct

 public function __construct($login, $nom, $prenom = "", $mail = "", $pass = "", $id = -1)
 {
     //appel du constructeur parent, initialise la référence sur la base de données $this->db
     parent::__construct();
     $this->mail = $mail;
     $this->nom = $nom;
     $this->prenom = $prenom;
     $this->pass = $pass;
     $this->login = $login;
     $this->id = $id;
     return $this;
 }
开发者ID:nitrox60,项目名称:github_bd_web,代码行数:12,代码来源:Membre.class.php

示例11: aknile

 function aknile()
 {
     // Your global variables labels:
     //  Here, you can assign labels to global variables you are using for this game.
     //  You can use any number of global variables with IDs between 10 and 99.
     //  If your game has options (variants), you also have to associate here a label to
     //  the corresponding ID in gameoptions.inc.php.
     // Note: afterwards, you can get/set the global variables with getGameStateValue/setGameStateInitialValue/setGameStateValue
     parent::__construct();
     self::initGameStateLabels(array("floodType" => 10, "floodCardId" => 11, "iterations" => 12, "gameOverTrigger" => 13, "deckSize" => 14, "plagueTrigger" => 15));
     $this->cards = self::getNew("module.common.deck");
     $this->cards->init("cards");
 }
开发者ID:AndyKerrison,项目名称:bga-nile,代码行数:13,代码来源:aknile.game.php

示例12: Tichu

 function Tichu()
 {
     // Your global variables labels:
     //  Here, you can assign labels to global variables you are using for this game.
     //  You can use any number of global variables with IDs between 10 and 99.
     //  If your game has options (variants), you also have to associate here a label to
     //  the corresponding ID in gameoptions.inc.php.
     // Note: afterwards, you can get/set the global variables with getGameStateValue/setGameStateInitialValue/setGameStateValue
     parent::__construct();
     self::initGameStateLabels(array("currentHandType" => 10, "maxCardValue" => 11, "alreadyFulfilledWish" => 12, "playType" => 13, "lastPlayPlayer" => 14, "firstOutPlayer" => 15, "lastOutPlayer" => 16, "OneTwoVictory" => 17, "dogNextPlayer" => 18, "gameLength" => 100, "grandTichu" => 101, "grandTichuPasses" => 102));
     $this->cards = self::getNew("module.common.deck");
     $this->cards->init("card");
 }
开发者ID:AndyKerrison,项目名称:bga-tichu,代码行数:13,代码来源:tichu.game.php

示例13: __construct

 public function __construct($conn)
 {
     parent::__construct($conn, 'tbl_transaction');
 }
开发者ID:DaiDanRui,项目名称:LinHang,代码行数:4,代码来源:Table_transaction.php

示例14: __construct

 public function __construct($data)
 {
     parent::__construct($data);
 }
开发者ID:smgladkovskiy,项目名称:kohana-table,代码行数:4,代码来源:editable.php

示例15:

 function __construct($table_name)
 {
     parent::__construct();
     $this->table_name = $table_name;
 }
开发者ID:Akshayf444,项目名称:BIP,代码行数:5,代码来源:Launch.php


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