__construct() public method

public __construct ( $connection, $model )
Example #1
0
 function __construct()
 {
     $this->table = 'usuario';
     $this->fields = array('nombre', 'password', 'nivel');
     $this->level = 10;
     parent::__construct();
 }
Example #2
0
 public function __construct($prenom = "", $nom = "", $ddn = "", $id = 0)
 {
     parent::__construct();
     $this->prenom = $prenom;
     $this->nom = $nom;
     $this->ddn = $ddn;
 }
 public function __construct(array $data = array())
 {
     parent::__construct($data);
     if ($this->token == '') {
         $this->token = Utils::genRandom(30);
     }
 }
Example #4
0
 public function __construct($matiere = "", $eleve = "", $note = "", $coeff = "", $id = 0)
 {
     parent::__construct();
     $this->matiere = $matiere;
     $this->eleve = $eleve;
     $this->note = $note;
     $this->date = $date;
 }
Example #5
0
 function __construct()
 {
     $this->table = 'usuario';
     $this->formTemplate = 'loginForm.tpl';
     $this->listTemplate = '';
     $this->fields = array('nombre', 'password', 'nivel');
     $this->level = 0;
     parent::__construct();
 }
 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();
 }
Example #7
0
 /**
  * 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));
 }
 /**
  * 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();
 }
Example #9
0
 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());
 }
Example #10
0
 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;
 }
Example #11
0
 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");
 }
Example #12
0
 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");
 }
Example #13
0
 public function __construct($conn)
 {
     parent::__construct($conn, 'tbl_transaction');
 }
Example #14
0
 public function __construct($data)
 {
     parent::__construct($data);
 }
Example #15
0
 function __construct($table_name)
 {
     parent::__construct();
     $this->table_name = $table_name;
 }
Example #16
0
 function __construct()
 {
     $this->table_name = 'manfold';
     parent::__construct();
 }
Example #17
0
 function __construct($view_name = 'table or view', $entity_name = 'entity')
 {
     parent::__construct($view_name, $entity_name . '_id', sprintf('admin/%s/edit/', $entity_name) . '%d', sprintf('admin/%s', $entity_name), 'table-striped table-hover');
 }
Example #18
0
 public function __construct($conn)
 {
     parent::__construct($conn, 'tbl_leave_message');
 }
Example #19
0
 function __construct()
 {
     $this->table_name = 'photo';
     parent::__construct();
 }
Example #20
0
 function __construct()
 {
     $this->table_name = 'reldiel';
     parent::__construct();
 }
Example #21
0
 function __construct()
 {
     $this->table_name = 'density';
     parent::__construct();
 }
 /**
  * constructor
  * @param string $name
  * @param string $alias
  * @param string $index_hints_list
  * @return void
  */
 function __construct($name, $alias = NULL, $index_hints_list)
 {
     parent::__construct($name, $alias);
     $this->index_hints_list = $index_hints_list;
 }
Example #23
0
 /** Logging::__construct()
  * class constructor
  * @see Table::__construct()
  * @return null
  */
 public function __construct()
 {
     parent::__construct($this->_name);
 }
Example #24
0
 function __construct()
 {
     $this->table_name = 'damage';
     parent::__construct();
 }
Example #25
0
 public function __construct(Site $site)
 {
     parent::__construct($site, "SteampunkedGame");
 }
Example #26
0
 function __construct()
 {
     $this->table_name = 'footnote_lasers';
     $this->column_names = array('Footnote', 'Reference');
     parent::__construct();
 }
Example #27
0
 function __construct()
 {
     $this->table_name = 'specheat';
     parent::__construct();
 }
 public function __construct($conn)
 {
     parent::__construct($conn, 'tbl_commodity_type');
 }
	public function __construct( $identifier ) {
		parent::__construct( $identifier, false );
		
		$this->transactionId = $this->createColumn( "transaction_id" );
		$this->userId = $this->createColumn( "user_id" );
		$this->userIp = $this->createColumn( "user_ip" );
		$this->timestamp = $this->createColumn( "timestamp" );
		$this->comment = $this->createColumn( "comment" );
		
		$this->setKeyColumns( array( $this->transactionId ) );
		
		$this->setWebSiteIndexes( array(
			new TableIndex( "user", array( $this->userId, $this->transactionId ) )
		) );
	}
Example #30
0
 function __construct()
 {
     $this->table_name = 'vsound';
     parent::__construct();
 }