public function get_tempfiles($skipfile='portfolio-export.zip') {
        $fs = get_file_storage();
        $files = $fs->get_area_files(SYSCONTEXTID, 'portfolio', 'exporter', $this->id, 'sortorder, itemid, filepath, filename', false);
        if (empty($files)) {
            return array();
        }
        $returnfiles = array();
        foreach ($files as $f) {
            if ($f->get_filename() == $skipfile) {
                continue;
            }
            $returnfiles[$f->get_filepath() . $f->get_filename()] = $f;
        }
        return $returnfiles;
    }
public function get_tempfiles($skipfile='portfolio-export.zip') {
        $fs = get_file_storage();
        $files = $fs->get_area_files(SYSCONTEXTID, 'portfolio', 'exporter', $this->id, 'sortorder, itemid, filepath, filename', false);
        if (empty($files)) {
            return array();
        }
        $returnfiles = array();
        foreach ($files as $f) {
            if ($f->get_filename() == $skipfile) {
                continue;
            }
            $returnfiles[$f->get_filepath() . $f->get_filename()] = $f;
        }
        return $returnfiles;
    }
public function get_tempfiles ( $ skipfile = 'portfolio-export.zip' ) { $ fs = get_file_storage ( ) ; $ files = $ fs -> get_area_files ( SYSCONTEXTID , 'portfolio' , 'exporter' , $ this -> id , 'sortorder, itemid, filepath, filename' , false ) ; if ( empty ( $ files ) ) { return array ( ) ; } $ returnfiles = array ( ) ; foreach ( $ files as $ f ) { if ( $ f -> get_filename ( ) == $ skipfile ) { continue ; } $ returnfiles [ $ f -> get_filepath ( ) . $ f -> get_filename ( ) ] = $ f ; } return $ returnfiles ; }
Returns an arary of files in the temporary working directory
for this export.
Always use this instead of the files api directly

@param string $skipfile name of the file to be skipped
@return array of stored_file objects keyed by name
Returns an arary of files in the temporary working directory for this export . Always use this instead of the files api directly