penambahan phpdoc dan perubahan semua class mengacu hanya pada $app
This commit is contained in:
+17
-4
@@ -3,7 +3,6 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/Auth.php
|
||||
Desc. : Class User Control dan Manajemen
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : March 16th, 2008.
|
||||
Last Modified : August 22nd, 2026.
|
||||
@@ -20,16 +19,30 @@ use \flight\Engine;
|
||||
use \flight\Session;
|
||||
use \flight\database\SimplePdo;
|
||||
|
||||
/**
|
||||
* Class Auth
|
||||
*
|
||||
* Kontrol dan Manajemen User Session.
|
||||
*
|
||||
* @license MIT, https://www.3fonia.com
|
||||
* @copyright Copyright (c) 2008-2026, Siau Pheng <[email protected]>
|
||||
*
|
||||
* @package Webapp\Web
|
||||
*/
|
||||
|
||||
final class Auth {
|
||||
private int $__id_reg = 0;
|
||||
protected Engine $app;
|
||||
protected SimplePdo $db;
|
||||
protected Session $session;
|
||||
|
||||
public function __construct(Engine $app, SimplePdo $db, Session $session){
|
||||
/**
|
||||
* @param Engine $app
|
||||
*/
|
||||
public function __construct(Engine $app){
|
||||
$this->app = $app;
|
||||
$this->db = $db;
|
||||
$this->session = $session;
|
||||
$this->db = $app->db();
|
||||
$this->session = $app->session();
|
||||
$this->__id_reg = (int)$this->session->get('__WEB_APP', ['REG_ID'=>0])['REG_ID'];
|
||||
}
|
||||
|
||||
|
||||
+11
-1
@@ -3,7 +3,6 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/Button.php
|
||||
Desc. : Button Generator (jQuery & Bootstrap)
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : February 27th, 2008.
|
||||
Last Modified : August 22nd, 2026.
|
||||
@@ -16,6 +15,17 @@ declare(strict_types=1);
|
||||
|
||||
namespace Webapp\Web;
|
||||
|
||||
/**
|
||||
* Class Button
|
||||
*
|
||||
* Pembuatan tombol aplikasi (jQuery & Bootstrap).
|
||||
*
|
||||
* @license MIT, https://www.3fonia.com
|
||||
* @copyright Copyright (c) 2008-2026, Siau Pheng <[email protected]>
|
||||
*
|
||||
* @package Webapp\Web
|
||||
*/
|
||||
|
||||
class Button {
|
||||
private $__abutton =[];
|
||||
|
||||
|
||||
+17
-4
@@ -3,7 +3,6 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/Form.php
|
||||
Desc. : Form Generator (jQuery & Bootstrap)
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : February 27th, 2008.
|
||||
Last Modified : August 22nd, 2026.
|
||||
@@ -20,6 +19,17 @@ use \flight\Engine;
|
||||
use \flight\Session;
|
||||
use \flight\database\SimplePdo;
|
||||
|
||||
/**
|
||||
* Class Form
|
||||
*
|
||||
* Pembuatan form (jQuery & Bootstrap).
|
||||
*
|
||||
* @license MIT, https://www.3fonia.com
|
||||
* @copyright Copyright (c) 2008-2026, Siau Pheng <[email protected]>
|
||||
*
|
||||
* @package Webapp\Web
|
||||
*/
|
||||
|
||||
final class Form {
|
||||
private $__aform = [];
|
||||
private $__ahide = [];
|
||||
@@ -27,10 +37,13 @@ final class Form {
|
||||
protected SimplePdo $db;
|
||||
protected Session $session;
|
||||
|
||||
public function __construct(Engine $app, SimplePdo $db, Session $session){
|
||||
/**
|
||||
* @param Engine $app
|
||||
*/
|
||||
public function __construct(Engine $app){
|
||||
$this->app = $app;
|
||||
$this->db = $db;
|
||||
$this->session = $session;
|
||||
$this->db = $app->db();
|
||||
$this->session = $app->session();
|
||||
}
|
||||
|
||||
public function option(string $label, string $field, mixed $value=null, bool $enable=true, bool $req=false, array $arr=[], ?string $help=null, ?string $change=null, bool $multi=false, bool $group=false): string {
|
||||
|
||||
+19
-6
@@ -3,7 +3,6 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/Menu.php
|
||||
Desc. : Class Menu Manajemen
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : January 16th, 2008.
|
||||
Last Modified : August 22nd, 2026.
|
||||
@@ -20,6 +19,17 @@ use \flight\Engine;
|
||||
use \flight\Session;
|
||||
use \flight\database\SimplePdo;
|
||||
|
||||
/**
|
||||
* Class Menu
|
||||
*
|
||||
* Manajemen Menu aplikasi.
|
||||
*
|
||||
* @license MIT, https://www.3fonia.com
|
||||
* @copyright Copyright (c) 2008-2026, Siau Pheng <[email protected]>
|
||||
*
|
||||
* @package Webapp\Web
|
||||
*/
|
||||
|
||||
final class Menu {
|
||||
private array $webapp;
|
||||
private array $webuser;
|
||||
@@ -27,12 +37,15 @@ final class Menu {
|
||||
protected SimplePdo $db;
|
||||
protected Session $session;
|
||||
|
||||
public function __construct(Engine $app, SimplePdo $db, Session $session){
|
||||
/**
|
||||
* @param Engine $app
|
||||
*/
|
||||
public function __construct(Engine $app){
|
||||
$this->app = $app;
|
||||
$this->db = $db;
|
||||
$this->session = $session;
|
||||
$this->webapp = $session->get('__WEB_APP', ['APP_MODULE'=>'', 'PARENT_SITE'=>'', 'PARENT_SUB'=>false]);
|
||||
$this->webuser = $session->get('__WEB_USER', ['Menu'=>'', 'Menu_Grup'=>'', 'MENU_MODUL'=>[]]);
|
||||
$this->db = $app->db();
|
||||
$this->session = $app->session();
|
||||
$this->webapp = $this->session->get('__WEB_APP', ['APP_MODULE'=>'', 'PARENT_SITE'=>'', 'PARENT_SUB'=>false]);
|
||||
$this->webuser = $this->session->get('__WEB_USER', ['Menu'=>'', 'Menu_Grup'=>'', 'MENU_MODUL'=>[]]);
|
||||
}
|
||||
|
||||
public function Sidebar(): string {
|
||||
|
||||
+11
-1
@@ -3,7 +3,6 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/Param.php
|
||||
Desc. : Class Parameter Manajemen
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : November 14th, 2013.
|
||||
Last Modified : August 22nd, 2026.
|
||||
@@ -18,6 +17,17 @@ namespace Webapp\Web;
|
||||
|
||||
use \flight\Engine;
|
||||
|
||||
/**
|
||||
* Class Param
|
||||
*
|
||||
* Manajemen Variable Request dari GET / POST.
|
||||
*
|
||||
* @license MIT, https://www.3fonia.com
|
||||
* @copyright Copyright (c) 2008-2026, Siau Pheng <siaupheng@3fonia.com>
|
||||
*
|
||||
* @package Webapp\Web
|
||||
*/
|
||||
|
||||
final class Param {
|
||||
private static $__ahasil = [];
|
||||
|
||||
|
||||
+11
-1
@@ -3,7 +3,6 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/Register.php
|
||||
Desc. : Class Registrasi Aplikasi
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : November 23th, 2011.
|
||||
Last Modified : August 22nd, 2026.
|
||||
@@ -20,6 +19,17 @@ use \flight\Engine;
|
||||
use \flight\Session;
|
||||
use \flight\database\SimplePdo;
|
||||
|
||||
/**
|
||||
* Class Register
|
||||
*
|
||||
* Registrasi aplikasi.
|
||||
*
|
||||
* @license MIT, https://www.3fonia.com
|
||||
* @copyright Copyright (c) 2008-2026, Siau Pheng <siaupheng@3fonia.com>
|
||||
*
|
||||
* @package Webapp\Web
|
||||
*/
|
||||
|
||||
final class Register {
|
||||
public function __construct(){
|
||||
}
|
||||
|
||||
+16
-3
@@ -3,7 +3,6 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/Table.php
|
||||
Desc. : Datatable (jQuery & Bootstrap)
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
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 <siaupheng@3fonia.com>
|
||||
*
|
||||
* @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();
|
||||
}
|
||||
|
||||
|
||||
+11
-1
@@ -3,7 +3,6 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/Terbilang.php
|
||||
Desc. : Class Format Angka & Terbilang
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : February 12th, 2009.
|
||||
Last Modified : August 22nd, 2026.
|
||||
@@ -16,6 +15,17 @@ declare(strict_types=1);
|
||||
|
||||
namespace Webapp\Web;
|
||||
|
||||
/**
|
||||
* Class Terbilang
|
||||
*
|
||||
* Pembuatan text terbilang.
|
||||
*
|
||||
* @license MIT, https://www.3fonia.com
|
||||
* @copyright Copyright (c) 2008-2026, Siau Pheng <siaupheng@3fonia.com>
|
||||
*
|
||||
* @package Webapp\Web
|
||||
*/
|
||||
|
||||
final class Terbilang {
|
||||
private $numb = ["","Satu","Dua","Tiga","Empat","Lima","Enam","Tujuh","Delapan","Sembilan"];
|
||||
|
||||
|
||||
+16
-4
@@ -3,7 +3,6 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/Update.php
|
||||
Desc. : Class Update Aplikasi Otomatis
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : June 14th, 2013.
|
||||
Last Modified : August 22nd, 2026.
|
||||
@@ -17,16 +16,29 @@ declare(strict_types=1);
|
||||
namespace Webapp\Web;
|
||||
|
||||
use \flight\Engine;
|
||||
use \flight\Session;
|
||||
|
||||
/**
|
||||
* Class Update
|
||||
*
|
||||
* Update Otomatis Aplikasi berbasis GIT.
|
||||
*
|
||||
* @license MIT, https://www.3fonia.com
|
||||
* @copyright Copyright (c) 2008-2026, Siau Pheng <siaupheng@3fonia.com>
|
||||
*
|
||||
* @package Webapp\Web
|
||||
*/
|
||||
|
||||
final class Update {
|
||||
private Array $__conf = [];
|
||||
private Bool $is_git = false;
|
||||
protected Engine $app;
|
||||
|
||||
public function __construct(Engine $app, Session $session){
|
||||
/**
|
||||
* @param Engine $app
|
||||
*/
|
||||
public function __construct(Engine $app){
|
||||
$this->app = $app;
|
||||
$this->__conf = $session->get('__WEB_APP');
|
||||
$this->__conf = $app->session()->get('__WEB_APP');
|
||||
$this->current();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user