*/ 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; /** * 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 array $locale locale array from ::setLocale, * null auto set */ public function __construct( array $db_config, \CoreLibs\Debug\Logging $log, \CoreLibs\Language\L10n $l10n, array $locale ) { $this->log = $log; // smarty template engine (extended Translation version) $this->smarty = new \CoreLibs\Template\SmartyExtend($l10n, $locale); // turn off set log per class $log->setLogPer('class', false); // create form class $this->form = new \CoreLibs\Output\Form\Generate( $db_config, $log, $l10n, $locale ); 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