getDB(); $tablesdef = ModHelper::loadXML(__DIR__, $VERSION); echo '

Install check

'; echo '

The following database objects will be created:

'; echo ''; echo 'Install'; break; case 2: $db = System::getInstance()->getDB(); $error = false; $db->isTransactionSupported() && $db->startTransaction(); $tablesdef = ModHelper::loadXML(__DIR__, $VERSION); echo '

Install progress

'; echo '

The following tables are created:

'; try { echo ''; } catch (SQLException $sqlEx) { echo ''; echo '

SQL ERROR: '.$sqlEx->getMessage().'

'; if (defined('DEBUG')) echo '

'.$sqlEx->getQuery().'
'; $error=true; } $db->isTransactionSupported() && (($error && $db->rollback()) || $db->commit()); echo 'Go back'; break; default: throw new BadFunctionCallException('Invalid step'); } break; case 'upgrade': switch ($STEP) { default: throw new BadFunctionCallException('Invalid step'); } break; case 'validate': switch ($STEP) { case 1: echo '
'; echo ''; echo ''; echo ''; echo ''; $ok = $this->doDefaultValidate(__FILE__, $MOD, $VERSION); if (!$ok) echo ''; echo '
'; break; case 2: $this->doDefaultValidateFixes(__FILE__, $MOD, $VERSION); break; default: throw new BadFunctionCallException('Invalid step'); } break; case 'uninstall': switch ($STEP) { case 1: $db = System::getInstance()->getDB(); $tablesdef = ModHelper::loadXML(__DIR__, $VERSION); echo '

Uninstall check

'; echo '

The following tables will be removed:

'; echo ''; echo 'Uninstall'; break; case 2: $db = System::getInstance()->getDB(); $error = false; $db->isTransactionSupported() && $db->startTransaction(); $tablesdef = ModHelper::loadXML(__DIR__, $VERSION); echo '

Uninstall progress

'; echo '

The following objects are removed:

'; try { echo ''; } catch (SQLException $sqlEx) { echo ''; echo '

SQL ERROR: '.$sqlEx->getMessage().'

'; if (defined('DEBUG')) echo '

'.$sqlEx->getQuery().'
'; $error=true; } $db->isTransactionSupported() && (($error && $db->rollback()) || $db->commit()); echo 'Go back'; break; default: throw new BadFunctionCallException('Invalid step'); } break; }