remove include statement of class file

This commit is contained in:
Tim Fry 2025-03-12 11:56:50 -03:00
parent 377d7be8e6
commit 5b8b0e41ec
1 changed files with 1 additions and 3 deletions

View File

@ -3279,7 +3279,7 @@
* @see database::__construct()
* @see database::connect()
*/
public static function new(array $params = []) {
public static function new(array $params = []): static {
if (self::$database === null) {
self::$database = new database($params);
if (!self::$database->is_connected()) {
@ -3326,7 +3326,6 @@
/*
//example usage
//find
require_once "resources/classes/database.php";
$database = new database;
$database->domain_uuid = $_SESSION["domain_uuid"];
$database->type = $db_type;
@ -3343,7 +3342,6 @@
$database->find();
print_r($database->result);
//insert
require_once "resources/classes/database.php";
$database = new database;
$database->domain_uuid = $_SESSION["domain_uuid"];
$database->table = "v_ivr_menus";