public function initTables() { $db = Lib::db(); foreach (glob(Config::getBasePath() . '/schemas/*.sql') as $file) { $sql = file_get_contents($file); $db->query($sql); } echo 'Completed'; exit; }
public function __construct() { if (empty(self::$db)) { self::$db = Lib::db(); } }
public function __construct() { $this->db = Lib::db($this->activedb); }
public function __construct() { $this->db = Lib::db($this->activedb); $this->{$this->primarykey} = null; }