protected function prepareFileName()
    {
        if ($this->params['all_databases']) {
            $this->database = '--all-databases';
            $this->fileName = 'all-databases.sql';
        } else {
            $this->database = $this->params['database'];
            $this->fileName = $this->database . '.sql';
        }
    }
protected function prepareFileName()
    {
        if ($this->params['all_databases']) {
            $this->database = '--all-databases';
            $this->fileName = 'all-databases.sql';
        } else {
            $this->database = $this->params['database'];
            $this->fileName = $this->database . '.sql';
        }
    }
protected function prepareFileName ( ) { if ( $ this -> params [ 'all_databases' ] ) { $ this -> database = '--all-databases' ; $ this -> fileName = 'all-databases.sql' ; } else { $ this -> database = $ this -> params [ 'database' ] ; $ this -> fileName = $ this -> database . '.sql' ; } }
Prepare a database name and a file dump name for mysqldump command
Prepare a database name and a file dump name for mysqldump command