@@ -94,7 +94,7 @@ class BuildFormBootstrap extends AbstractBuildForm {
publicfunctionhead(){
$html='';
$html.='<div '.$this->getAttribute('class',$this->formSpec['class'],TRUE).'>';// main <div class=...> around everything, Whole FORM; class="container" or class="container-fluid"
$html.='<div '.Support::doAttribute('class',$this->formSpec['class'],TRUE).'>';// main <div class=...> around everything, Whole FORM; class="container" or class="container-fluid"
* If not exists: open database and store the new dbh in Store[System][SYSTEM_DBH]
*
* @throws CodeException
* @throws UserException
* @throws UserFormException
*/
publicfunction__construct(){
$this->store=Store::getInstance();
...
...
@@ -76,7 +76,7 @@ class Database {
* Open mysqli database connection if not already done.
*
* @return \mysqli
* @throws UserException
* @throws UserFormException
*/
privatefunctiondbConnect(){
$mysqli=null;
...
...
@@ -89,7 +89,7 @@ class Database {
$mysqli=new\mysqli($dbserver,$dbuser,$dbpw,$db);
if($mysqli->connect_error){
thrownewUserException("Error open Database 'mysql:host=".$dbserver.";dbname=".$db.";dbuser=".$dbuser."'': ".$mysqli->connect_errno.PHP_EOL.$mysqli->connect_error,ERROR_DB_OPEN);
thrownewUserFormException("Error open Database 'mysql:host=".$dbserver.";dbname=".$db.";dbuser=".$dbuser."'': ".$mysqli->connect_errno.PHP_EOL.$mysqli->connect_error,ERROR_DB_OPEN);
}
return$mysqli;
...
...
@@ -117,7 +117,7 @@ class Database {
* @param string $table name of the table
* @param string $columnName name of the column
*
* @throws UserException if the table or column does not exist, or is not of type ENUM or SET
* @throws UserFormException if the table or column does not exist, or is not of type ENUM or SET