From b81fd01dfe225f137846fc35bb3ed1af8e4c7aaa Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 11 Feb 2009 07:46:53 +0000 Subject: [PATCH] file api: MDL-18111 Improve doc comments a bit. --- lib/file/file_browser.php | 10 +++++++++- lib/file/file_info.php | 3 +++ lib/file/file_info_course.php | 3 +++ lib/file/file_info_coursecat.php | 3 +++ lib/file/file_info_coursefile.php | 3 +++ lib/file/file_info_module.php | 3 +++ lib/file/file_info_stored.php | 4 ++++ lib/file/file_info_system.php | 3 +++ lib/file/file_info_user.php | 3 +++ lib/file/virtual_root_file.php | 3 ++- 10 files changed, 36 insertions(+), 2 deletions(-) diff --git a/lib/file/file_browser.php b/lib/file/file_browser.php index 6cbd6ef387e..ff2a0afd1b5 100644 --- a/lib/file/file_browser.php +++ b/lib/file/file_browser.php @@ -11,7 +11,15 @@ require_once("$CFG->libdir/file/file_info_coursefile.php"); require_once("$CFG->libdir/file/virtual_root_file.php"); /** - * Main interface for browsing of file tree (local files, areas, virtual files, etc.). + * This class provides the main entry point for other code wishing to get + * information about files. + * + * The whole file storage for a Moodle site can be seen as a huge virtual tree. + * The spine of the tree is the tree of contexts (system, course-categories, + * courses, modules, also users). Then, within each context, there may be any number of + * file areas, and a file area contains folders and files. The various file_info + * subclasses return info about the things in this tree. They should be obtained + * from an instance of this class. */ class file_browser { diff --git a/lib/file/file_info.php b/lib/file/file_info.php index eaa3fa95b68..14ceb830808 100644 --- a/lib/file/file_info.php +++ b/lib/file/file_info.php @@ -1,5 +1,8 @@