public function move_files($questionid, $oldcontextid, $newcontextid) {
        $fs = get_file_storage();
        $fs->move_area_files_to_new_context($oldcontextid,
                $newcontextid, 'question', 'questiontext', $questionid);
        $fs->move_area_files_to_new_context($oldcontextid,
                $newcontextid, 'question', 'generalfeedback', $questionid);
    }
public function move_files($questionid, $oldcontextid, $newcontextid) {
        $fs = get_file_storage();
        $fs->move_area_files_to_new_context($oldcontextid,
                $newcontextid, 'question', 'questiontext', $questionid);
        $fs->move_area_files_to_new_context($oldcontextid,
                $newcontextid, 'question', 'generalfeedback', $questionid);
    }
public function move_files ( $ questionid , $ oldcontextid , $ newcontextid ) { $ fs = get_file_storage ( ) ; $ fs -> move_area_files_to_new_context ( $ oldcontextid , $ newcontextid , 'question' , 'questiontext' , $ questionid ) ; $ fs -> move_area_files_to_new_context ( $ oldcontextid , $ newcontextid , 'question' , 'generalfeedback' , $ questionid ) ; }
Move all the files belonging to this question from one context to another.
@param int $questionid the question being moved.
@param int $oldcontextid the context it is moving from.
@param int $newcontextid the context it is moving to.
Move all the files belonging to this question from one context to another .