penambahan phpdoc dan perubahan semua class mengacu hanya pada $app
This commit is contained in:
+16
-3
@@ -3,7 +3,6 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/Table.php
|
||||
Desc. : Datatable (jQuery & Bootstrap)
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : January 16th, 2008.
|
||||
Last Modified : August 22nd, 2026.
|
||||
@@ -19,6 +18,17 @@ namespace Webapp\Web;
|
||||
use \flight\Engine;
|
||||
use \flight\database\SimplePdo;
|
||||
|
||||
/**
|
||||
* Class Table
|
||||
*
|
||||
* Pembuatan DataTable (jQuery & Bootstrap).
|
||||
*
|
||||
* @license MIT, https://www.3fonia.com
|
||||
* @copyright Copyright (c) 2008-2026, Siau Pheng <[email protected]>
|
||||
*
|
||||
* @package Webapp\Web
|
||||
*/
|
||||
|
||||
final class Table {
|
||||
private $__ttable = "";
|
||||
private $__tfield = "";
|
||||
@@ -45,9 +55,12 @@ final class Table {
|
||||
protected SimplePdo $db;
|
||||
protected array $data;
|
||||
|
||||
public function __construct(Engine $app, SimplePdo $db) {
|
||||
/**
|
||||
* @param Engine $app
|
||||
*/
|
||||
public function __construct(Engine $app) {
|
||||
$this->app = $app;
|
||||
$this->db = $db;
|
||||
$this->db = $app->db();
|
||||
$this->data = $this->app->request()->data->getData();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user