upgrade all with dice compatible
This commit is contained in:
+8
-9
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user