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