penambahan phpdoc dan perubahan semua class mengacu hanya pada $app

This commit is contained in:
2026-08-27 12:01:54 +07:00
parent 64e9c02c38
commit a2978ae927
17 changed files with 264 additions and 59 deletions
+17 -5
View File
@@ -3,7 +3,6 @@
/*******************************************************************
Module : /Printer/PrintPOS.php
Desc. : Class cetak POS
Created By : Siau Pheng ([email protected]).
Created Date : June 15th, 2008.
Last Modified : August 21st, 2026.
@@ -17,7 +16,17 @@ declare(strict_types=1);
namespace Webapp\Printer;
use \flight\Engine;
use \flight\Session;
/**
* Class PrintPOS
*
* Pembuatan Nota/Struk untuk cetak ke Printer POS.
*
* @license MIT, https://www.3fonia.com
* @copyright Copyright (c) 2008-2026, Siau Pheng <[email protected]>
*
* @package Webapp\Printer
*/
class PrintPOS {
private $_header = [];
@@ -35,10 +44,13 @@ class PrintPOS {
private array $webuser;
protected Engine $app;
public function __construct(Engine $app, Session $session) {
/**
* @param Engine $app
*/
public function __construct(Engine $app) {
$this->app = $app;
$this->webapp = $session->get('__WEB_APP', ['APP_NAME'=>'', 'APP_VER'=>'']);
$this->webuser = $session->get('__WEB_USER', ['UserID'=>0, 'Username'=>'']);
$this->webapp = $app->session()->get('__WEB_APP', ['APP_NAME'=>'', 'APP_VER'=>'']);
$this->webuser = $app->session()->get('__WEB_USER', ['UserID'=>0, 'Username'=>'']);
}
public function set_opendrawer(): void {