Piwik\Updater::executeSingleUpdateClass PHP Méthode

executeSingleUpdateClass() private méthode

private executeSingleUpdateClass ( $className )
    private function executeSingleUpdateClass($className)
    {
        $update = StaticContainer::getContainer()->make($className);
        try {
            call_user_func(array($update, 'doUpdate'), $this);
        } catch (\Exception $e) {
            // if an Update file executes PHP statements directly, DB exceptions be handled by executeSingleMigrationQuery, so
            // make sure to check for them here
            if ($e instanceof Zend_Db_Exception) {
                throw new UpdaterErrorException($e->getMessage(), $e->getCode(), $e);
            } else {
                if ($e instanceof MissingFilePermissionException) {
                    throw new UpdaterErrorException($e->getMessage(), $e->getCode(), $e);
                }
            }
            throw $e;
        }
    }