*/ private array $HEADER = []; /** @var array */ private array $DATA = []; /** @var array */ private array $DEBUG_DATA = []; /** @var string the template name */ private string $EDIT_TEMPLATE = ''; /** @var \CoreLibs\Template\SmartyExtend smarty system */ private \CoreLibs\Template\SmartyExtend $smarty; /** @var \CoreLibs\Output\Form\Generate form generate system */ private \CoreLibs\Output\Form\Generate $form; /** @var \CoreLibs\Logging\Logging */ public \CoreLibs\Logging\Logging $log; /** @var \CoreLibs\Language\L10n */ public \CoreLibs\Language\L10n $l; /** @var \CoreLibs\ACL\Login */ public \CoreLibs\ACL\Login $login; /** * construct form generator * * phpcs:ignore * @param array{db_name:string,db_user:string,db_pass:string,db_host:string,db_port:int,db_schema:string,db_encoding:string,db_type:string,db_ssl:string,db_convert_type?:string[],db_convert_placeholder?:bool,db_convert_placeholder_target?:string,db_debug_replace_placeholder?:bool} $db_config db config array, mandatory * @param \CoreLibs\Logging\Logging $log Logging class, null auto set * @param \CoreLibs\Language\L10n $l10n l10n language class, null auto set * @param \CoreLibs\ACL\Login $login login class for ACL settings * @param array $options Various settings options */ public function __construct( array $db_config, \CoreLibs\Logging\Logging $log, \CoreLibs\Language\L10n $l10n, \CoreLibs\ACL\Login $login, array $options ) { $this->log = $log; $this->login = $login; $this->l = $l10n; // smarty template engine (extended Translation version) $this->smarty = new \CoreLibs\Template\SmartyExtend( $l10n, $log, $options['cache_id'] ?? '', $options['compile_id'] ?? '', ); // turn off set log per class $log->unsetLogFlag(\CoreLibs\Logging\Logger\Flag::per_class); // create form class $this->form = new \CoreLibs\Output\Form\Generate( $db_config, $log, $l10n, $this->login->loginGetAcl() ); if ($this->form->mobile_phone) { echo "I am sorry, but this page cannot be viewed by a mobile phone"; exit; } // $this->log->debug('POST', $this->log->prAr($_POST)); } /** * edit order page * * @return void */ private function editOrderPage(): void { // get is for "table_name" and "where" only $table_name = $_GET['table_name'] ?? $_POST['table_name'] ?? ''; // not in use // $where_string = $_GET['where'] ?? $_POST['where'] ?? ''; // order name is _always_ order_number for the edit interface // follwing arrays do exist here: // $position ... has the positions of the [0..max], cause in a