Pass the database object to the schema object

This commit is contained in:
markjcrane
2025-11-01 21:34:03 -06:00
parent 97af53b810
commit a90a4e6212
5 changed files with 15 additions and 17 deletions

View File

@@ -36,7 +36,7 @@
public $data_types;
//class constructor
public function __construct($setting_array) {
public function __construct($setting_array = []) {
//includes files
require dirname(__DIR__, 2) . "/resources/require.php";
@@ -879,8 +879,8 @@
}
//example use
//$obj = new schema;
//$obj->db_type = $db_type;
//$obj->schema();
//$schema = new schema();
//$schema->db_type = $db_type;
//$schema->schema();
//$result_array = $schema->obj['sql'];
//print_r($result_array);