<?php
 namespace App\Config; class SystemVars extends DbUniAssocVarsAbstract { protected $dbTablePkCol = 'var'; protected $dbTableValueCol = 'value'; protected $dbVarsPrefix = ''; protected $dbTableLastUpdateTimeCol = 'lastUpdate'; protected function getDbTableName() { global $DBTSystemVars; return $DBTSystemVars; } protected function save_check() { parent::save_check(); if ($this->itemsList) { foreach($this->itemsList as $var=>$value) { if (mb_strlen((string)$value)>10000) { $this->addErrorMessage("The var `{$var}` in SystemVars must not have a length greater than 10000 chars."); } } } } } 