コード例 #1
0
ファイル: Db.php プロジェクト: rodrigosaraiva/trialchallenge
 /**
  * Db constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $configs = $this->getConfigs();
     $this->setDatabase($configs['database']);
     $this->setUser($configs['user']);
     $this->setPassword($configs['password']);
     $this->setHost($configs['hostname']);
     $this->connection = new \mysqli($this->getHost(), $this->getUser(), $this->getPassword(), $this->getDatabase());
 }
コード例 #2
0
 public function __construct($name, $location, $faction, $battleRating, $strategyRating, $agility, $specialRetreat, $combatUnits)
 {
     parent::__construct($name, $location, $faction, $battleRating, $strategyRating, $agility, $specialRetreat, $combatUnits);
 }
コード例 #3
0
 public function __construct()
 {
     parent::__construct();
 }
コード例 #4
0
ファイル: Log.php プロジェクト: miguelramos/grav
 /**
  * Constructor.
  */
 protected function __construct()
 {
     parent::__construct();
     $this->extension = '.log';
 }