upgrade all with dice compatible

This commit is contained in:
2026-08-22 12:53:04 +07:00
parent 27ebdca49b
commit e7bb9a6c90
34 changed files with 546 additions and 486 deletions
+8 -9
View File
@@ -3,22 +3,21 @@
/*******************************************************************
Module : /Web/Table.php
Desc. : HTML Table (jQuery & Bootstrap)
Desc. : Datatable (jQuery & Bootstrap)
Created By : Siau Pheng ([email protected]).
Created Date : January 16th, 2008.
Last Modified : August 16th, 2026.
Last Modified : August 22nd, 2026.
(c) 2008 - 2026, 3FONIA Software; WWW.3FONIA.COM.
(c) 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
//OK
declare(strict_types=1);
namespace siaupheng\webapp\Web;
use flight\Engine;
use flight\database\SimplePdo;
use \flight\Engine;
use \flight\database\SimplePdo;
final class Table {
private $__ttable = "";
@@ -46,9 +45,9 @@ final class Table {
protected SimplePdo $db;
protected array $data;
public function __construct(?Engine $app = null) {
$this->app = (empty($app) === true) ? \Flight::app() : $app;
$this->db = $this->app->db();
public function __construct(Engine $app, SimplePdo $db) {
$this->app = $app;
$this->db = $db;
$this->data = $this->app->request()->data->getData();
}