public function get_files() {
        global $USER;

        $fs = get_file_storage();
        $usercontext = context_user::instance($USER->id);

        return $fs->get_area_files($usercontext->id, 'user', 'draft',
                $this->draftitemid, 'sortorder, filepath, filename', false);
    }
public function get_files() {
        global $USER;

        $fs = get_file_storage();
        $usercontext = context_user::instance($USER->id);

        return $fs->get_area_files($usercontext->id, 'user', 'draft',
                $this->draftitemid, 'sortorder, filepath, filename', false);
    }
public function get_files ( ) { global $ USER ; $ fs = get_file_storage ( ) ; $ usercontext = context_user :: instance ( $ USER -> id ) ; return $ fs -> get_area_files ( $ usercontext -> id , 'user' , 'draft' , $ this -> draftitemid , 'sortorder, filepath, filename' , false ) ; }
Get the files that were submitted.
@return array of stored_files objects.
Get the files that were submitted .