library/Services/ShopPreparation/ShopPreparation.php
public function init($request)
    {
        if ($file = $request->getUploadedFile('importSql')) {
            $databaseHandler = $this->getDatabaseHandler();
            $databaseHandler->import($file);
        }

        if ($request->getParameter('dumpDB')) {
            $databaseRestorer = $this->getDatabaseRestorer();
            $databaseRestorer->dumpDB($request->getParameter('dump-prefix'));
        }

        if ($request->getParameter('restoreDB')) {
            $databaseRestorer = $this->getDatabaseRestorer();
            $databaseRestorer->restoreDB($request->getParameter('dump-prefix'));
        }
    }
public function init($request)
    {
        if ($file = $request->getUploadedFile('importSql')) {
            $databaseHandler = $this->getDatabaseHandler();
            $databaseHandler->import($file);
        }

        if ($request->getParameter('dumpDB')) {
            $databaseRestorer = $this->getDatabaseRestorer();
            $databaseRestorer->dumpDB($request->getParameter('dump-prefix'));
        }

        if ($request->getParameter('restoreDB')) {
            $databaseRestorer = $this->getDatabaseRestorer();
            $databaseRestorer->restoreDB($request->getParameter('dump-prefix'));
        }
    }
public function init ( $ request ) { if ( $ file = $ request -> getUploadedFile ( 'importSql' ) ) { $ databaseHandler = $ this -> getDatabaseHandler ( ) ; $ databaseHandler -> import ( $ file ) ; } if ( $ request -> getParameter ( 'dumpDB' ) ) { $ databaseRestorer = $ this -> getDatabaseRestorer ( ) ; $ databaseRestorer -> dumpDB ( $ request -> getParameter ( 'dump-prefix' ) ) ; } if ( $ request -> getParameter ( 'restoreDB' ) ) { $ databaseRestorer = $ this -> getDatabaseRestorer ( ) ; $ databaseRestorer -> restoreDB ( $ request -> getParameter ( 'dump-prefix' ) ) ; } }
Handles request parameters.

@param Request $request
Handles request parameters .