*/ private $HEADER = []; /** @var array */ private $DATA = []; /** @var array */ private $DEBUG_DATA = []; /** @var string the template name */ private $EDIT_TEMPLATE = ''; /** @var \CoreLibs\Template\SmartyExtend smarty system */ private $smarty; /** @var \CoreLibs\Output\Form\Generate form generate system */ private $form; /** @var \CoreLibs\Debug\Logging */ public $log; /** @var \CoreLibs\ACL\Login */ public $login; /** * construct form generator * * @param array $db_config db config array, mandatory * @param \CoreLibs\Debug\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\Debug\Logging $log, \CoreLibs\Language\L10n $l10n, \CoreLibs\ACL\Login $login, array $options ) { $this->log = $log; $this->login = $login; // smarty template engine (extended Translation version) $this->smarty = new \CoreLibs\Template\SmartyExtend( $l10n, $options['cache_id'] ?? '', $options['compile_id'] ?? '', ); // turn off set log per class $log->setLogPer('class', false); // 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->form->log->debug('POST', $this->form->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