penambahan phpdoc dan perubahan semua class mengacu hanya pada $app
This commit is contained in:
+11
-1
@@ -3,7 +3,6 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Data/CSV.php
|
||||
Desc. : Class pembuatan file CSV
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : April 2rd, 2011.
|
||||
Last Modified : August 21st, 2026.
|
||||
@@ -19,6 +18,17 @@ namespace Webapp\Data;
|
||||
define( DELI_CSV, ";" );
|
||||
define( CRLF_CSV, "\r\n" );
|
||||
|
||||
/**
|
||||
* Class CSV
|
||||
*
|
||||
* Membuat file CSV.
|
||||
*
|
||||
* @license MIT, https://www.3fonia.com
|
||||
* @copyright Copyright (c) 2008-2026, Siau Pheng <[email protected]>
|
||||
*
|
||||
* @package Webapp\Data
|
||||
*/
|
||||
|
||||
final class CSV {
|
||||
private $__avalue = [];
|
||||
private $__atabel = [];
|
||||
|
||||
+17
-3
@@ -3,7 +3,6 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Data/Cache.php
|
||||
Desc. : Class cache css dan js aplikasi
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : March 16th, 2008.
|
||||
Last Modified : August 21st, 2026.
|
||||
@@ -22,6 +21,17 @@ use \FilesystemIterator;
|
||||
use \MatthiasMullie\Minify;
|
||||
use \SplFileInfo;
|
||||
|
||||
/**
|
||||
* Class Cache
|
||||
*
|
||||
* Membuat Cache gabungan CSS dan JS sesuai dengan session.
|
||||
*
|
||||
* @license MIT, https://www.3fonia.com
|
||||
* @copyright Copyright (c) 2008-2026, Siau Pheng <[email protected]>
|
||||
*
|
||||
* @package Webapp\Data
|
||||
*/
|
||||
|
||||
final class Cache {
|
||||
private $__cachedir = "";
|
||||
private $__cssdir = "";
|
||||
@@ -34,9 +44,13 @@ final class Cache {
|
||||
protected Session $session;
|
||||
protected array $__asset = [];
|
||||
|
||||
public function __construct(Engine $app, Session $session) {
|
||||
/**
|
||||
* @param Engine $app
|
||||
*/
|
||||
|
||||
public function __construct(Engine $app) {
|
||||
$this->app = $app;
|
||||
$this->session = $session;
|
||||
$this->session = $app->session();
|
||||
$rootdir = (defined('PROJECT_ROOT')) ? PROJECT_ROOT : $this->app->get('app.project_root');
|
||||
$this->__cachedir = $rootdir . '/public/chunks/';
|
||||
$this->__localedir = $rootdir . '/app/Scripts/locale/';
|
||||
|
||||
+19
-5
@@ -3,7 +3,6 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Data/PDF.php
|
||||
Desc. : Class pembuatan file PDF
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : April 18th, 2015.
|
||||
Last Modified : August 21st, 2026.
|
||||
@@ -16,9 +15,20 @@ declare(strict_types=1);
|
||||
|
||||
namespace Webapp\Data;
|
||||
|
||||
use \flight\Session;
|
||||
use \flight\Engine;
|
||||
use \Mpdf;
|
||||
|
||||
/**
|
||||
* Class PDF
|
||||
*
|
||||
* Membuat file PDF.
|
||||
*
|
||||
* @license MIT, https://www.3fonia.com
|
||||
* @copyright Copyright (c) 2008-2026, Siau Pheng <[email protected]>
|
||||
*
|
||||
* @package Webapp\Data
|
||||
*/
|
||||
|
||||
final class PDF {
|
||||
private $__avalue = [];
|
||||
private $__atabel = [];
|
||||
@@ -27,9 +37,13 @@ final class PDF {
|
||||
protected array $webapp;
|
||||
protected array $webuser;
|
||||
|
||||
public function __construct(Session $session) {
|
||||
$this->webapp = $session->get('__WEB_APP', ['REG_NAME'=>'', 'APP_NAME'=>'', 'APP_VER'=>'']);
|
||||
$this->webuser = $session->get('__WEB_USER', ['UserID'=>0, 'Username'=>'']);
|
||||
/**
|
||||
* @param Engine $app
|
||||
*/
|
||||
|
||||
public function __construct(Engine $app) {
|
||||
$this->webapp = $app->session()->get('__WEB_APP', ['REG_NAME'=>'', 'APP_NAME'=>'', 'APP_VER'=>'']);
|
||||
$this->webuser = $app->session()->get('__WEB_USER', ['UserID'=>0, 'Username'=>'']);
|
||||
}
|
||||
|
||||
public function add_field(string $nama, string|int $lebar=0, string $align="L", string $func="", int $kol=1): void {
|
||||
|
||||
Reference in New Issue
Block a user