public function prepare_package_file() {
        if (empty($this->singlefile) && empty($this->multifiles)) {
            throw new portfolio_caller_exception('invalidpreparepackagefile', 'portfolio', $this->get_return_url());
        }
        if ($this->singlefile) {
            return $this->exporter->copy_existing_file($this->singlefile);
        }
        foreach ($this->multifiles as $file) {
            $this->exporter->copy_existing_file($file);
        }
    }
public function prepare_package_file() {
        if (empty($this->singlefile) && empty($this->multifiles)) {
            throw new portfolio_caller_exception('invalidpreparepackagefile', 'portfolio', $this->get_return_url());
        }
        if ($this->singlefile) {
            return $this->exporter->copy_existing_file($this->singlefile);
        }
        foreach ($this->multifiles as $file) {
            $this->exporter->copy_existing_file($file);
        }
    }
public function prepare_package_file ( ) { if ( empty ( $ this -> singlefile ) && empty ( $ this -> multifiles ) ) { throw new portfolio_caller_exception ( 'invalidpreparepackagefile' , 'portfolio' , $ this -> get_return_url ( ) ) ; } if ( $ this -> singlefile ) { return $ this -> exporter -> copy_existing_file ( $ this -> singlefile ) ; } foreach ( $ this -> multifiles as $ file ) { $ this -> exporter -> copy_existing_file ( $ file ) ; } }
Helper function to copy files into the temp area
for single or multi file exports.

@return stored_file|bool
Helper function to copy files into the temp area for single or multi file exports .