Beispiel #1
0
 public function __construct($settings)
 {
     parent::__construct($settings);
     if (!$this->settings->serverport) {
         $this->settings->serverport = 3306;
     }
 }
Beispiel #2
0
 public function __construct($settings)
 {
     parent::__construct($settings);
     if (!$this->settings->serverport) {
         $this->settings->serverport = 9306;
     }
     $this->mnd = function_exists('mysqli_fetch_all');
 }
Beispiel #3
0
 public function __construct($settings)
 {
     parent::__construct($settings);
     $this->settings->database = $this->settings->original;
     if (!is_file($this->settings->database) && is_file('/' . $this->settings->database)) {
         $this->settings->database = '/' . $this->settings->database;
     }
 }
Beispiel #4
0
 public function __construct($settings)
 {
     parent::__construct($settings);
     if (!is_file($this->settings->database) && is_file('/' . $this->settings->database)) {
         $this->settings->database = '/' . $this->settings->database;
     }
     $this->settings->servername = $this->settings->servername === 'localhost' || $this->settings->servername === '' ? '' : $this->settings->servername . ':';
 }
Beispiel #5
0
 public function __construct($settings)
 {
     parent::__construct($settings);
     $this->settings->type = explode(':', $this->settings->original, 2)[0];
 }