change namespace to Webapp\

This commit is contained in:
2026-08-26 14:01:47 +07:00
parent 81ff3bc60c
commit 64e9c02c38
26 changed files with 179 additions and 181 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
declare(strict_types=1);
namespace siaupheng\webapp\Printer;
namespace Webapp\Printer;
use \flight\Session;
+4 -4
View File
@@ -14,7 +14,7 @@
declare(strict_types=1);
namespace siaupheng\webapp\Printer;
namespace Webapp\Printer;
use \flight\Engine;
use \flight\Session;
@@ -37,7 +37,7 @@ class PrintPOS {
public function __construct(Engine $app, Session $session) {
$this->app = $app;
$this->webapp = $session->get('__WEB_APP', ['APP_NAME'=>'', 'APP_VER'=>'', 'REAL_PATH'=>'']);
$this->webapp = $session->get('__WEB_APP', ['APP_NAME'=>'', 'APP_VER'=>'']);
$this->webuser = $session->get('__WEB_USER', ['UserID'=>0, 'Username'=>'']);
}
@@ -58,8 +58,8 @@ class PrintPOS {
}
public function set_header_logo(string $logo_file = ""): void {
if (!empty($logo_file) && file_exists($this->webapp['REAL_PATH']."assets/images/".$logo_file)) {
$this->_config['logo'] = $this->webapp['WEB_PATH']."assets/images/".$logo_file;
if (!empty($logo_file) && file_exists(PROJECT_ROOT."assets/images/".$logo_file)) {
$this->_config['logo'] = PROJECT_BASE."assets/images/".$logo_file;
}
}
+4 -4
View File
@@ -14,7 +14,7 @@
declare(strict_types=1);
namespace siaupheng\webapp\Printer;
namespace Webapp\Printer;
use \flight\Engine;
use \flight\Session;
@@ -32,13 +32,13 @@ class PrintRAW {
'opendraw' => false,
'cutpaper' => false,
];
private array $webapp;
private array $webuser;
protected Engine $app;
protected array $webapp;
protected array $webuser;
public function __construct(Engine $app, Session $session) {
$this->app = $app;
$this->webapp = $session->get('__WEB_APP', ['APP_NAME'=>'', 'APP_VER'=>'', 'REAL_PATH'=>'']);
$this->webapp = $session->get('__WEB_APP', ['APP_NAME'=>'', 'APP_VER'=>'']);
$this->webuser = $session->get('__WEB_USER', ['UserID'=>0, 'Username'=>'']);
}