in classes/api/base.php [626:636]
protected function get_stored_page_data($contextid, $pagetype, $id) {
$fs = get_file_storage();
if ($pagetype === 'feedback') {
$component = 'assignfeedback_onenote';
$filearea = self::ASSIGNFEEDBACK_ONENOTE_FILEAREA;
} else if ($pagetype === 'submission') {
$component = 'assignsubmission_onenote';
$filearea = self::ASSIGNSUBMISSION_ONENOTE_FILEAREA;
}
return $fs->get_area_files($contextid, $component, $filearea, $id, 'id', false);
}