penambahan phpdoc dan perubahan semua class mengacu hanya pada $app
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user