getDB(); $tablesdef = ModHelper::loadXML(__DIR__, $VERSION); echo '
The following database objects will be created:
'; echo 'The following tables are created:
'; try { 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 ''; 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 '
The following tables will be removed:
'; echo 'The following objects are removed:
'; try { 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; }