本文整理汇总了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();
}
示例2: __construct
public function __construct($prenom = "", $nom = "", $ddn = "", $id = 0)
{
parent::__construct();
$this->prenom = $prenom;
$this->nom = $nom;
$this->ddn = $ddn;
}
示例3: __construct
public function __construct(array $data = array())
{
parent::__construct($data);
if ($this->token == '') {
$this->token = Utils::genRandom(30);
}
}
示例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;
}
示例5: array
function __construct()
{
$this->table = 'usuario';
$this->formTemplate = 'loginForm.tpl';
$this->listTemplate = '';
$this->fields = array('nombre', 'password', 'nivel');
$this->level = 0;
parent::__construct();
}
示例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();
}
示例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));
}
示例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();
}
示例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());
}
示例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;
}
示例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");
}
示例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");
}
示例13: __construct
public function __construct($conn)
{
parent::__construct($conn, 'tbl_transaction');
}
示例14: __construct
public function __construct($data)
{
parent::__construct($data);
}
示例15:
function __construct($table_name)
{
parent::__construct();
$this->table_name = $table_name;
}