/**
  * Performs the update itself
  *
  * @param	array		pointer where to insert all DB queries made, so they can be shown to the user if wanted
  * @param	string		pointer to output custom messages
  * @return	boolean		true if update succeeded, false otherwise
  */
 function performUpdate(&$dbQueries, &$customMessages)
 {
     $customMessages = '';
     // if we just set it to an older version
     if ($this->userInput['version']) {
         $customMessages .= 'If you want to see what you need to do to use the new features, run the update wizard again!';
     }
     $linesArr = $this->pObj->writeToLocalconf_control();
     $version = $this->userInput['version'] ? $this->userInput['version'] : TYPO3_branch;
     $this->pObj->setValueInLocalconfFile($linesArr, '$TYPO3_CONF_VARS[\'SYS\'][\'compat_version\']', $version);
     $this->pObj->writeToLocalconf_control($linesArr, 0);
     $customMessages .= '<br />The compatibility version has been set to ' . $version . '.';
     return 1;
 }
 /**
  * Hooks into Installer to modify lines to be written to localconf.php.
  *
  * @param array $lines
  * @param integer $step
  * @param tx_install $instObj
  * @return void
  */
 public function executeWriteLocalconf(array &$lines, $step, tx_install $instObj)
 {
     switch ($step) {
         case 3:
         case 4:
             $driver = $instObj->INSTALL['localconf.php']['typo_db_driver'];
             if (!$driver && $this->driver) {
                 // Driver was already configured
                 break;
             }
             $driverConfig = '';
             switch ($driver) {
                 case 'oci8':
                     $driverConfig = '\'driverOptions\' => array(' . '\'connectSID\' => ' . ($instObj->INSTALL['localconf.php']['typo_db_type'] === 'sid' ? 'TRUE' : 'FALSE') . ')';
                     break;
                 case 'mssql':
                 case 'odbc_mssql':
                     $driverConfig = '\'useNameQuote\' => TRUE';
                     break;
                 case 'mysql':
                     return;
             }
             $config = 'array(' . '\'_DEFAULT\' => array(' . '\'type\' => \'adodb\',' . '\'config\' => array(' . '\'driver\' => \'' . $driver . '\',' . $driverConfig . ')' . ')' . ');';
             $instObj->setValueInLocalconfFile($lines, '$TYPO3_CONF_VARS[\'EXTCONF\'][\'dbal\'][\'handlerCfg\']', $config, FALSE);
             break;
     }
 }