From: tjhunt Date: Wed, 11 Feb 2009 07:46:53 +0000 (+0000) Subject: file api: MDL-18111 Improve doc comments a bit. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b81fd01dfe225f137846fc35bb3ed1af8e4c7aaa;p=moodle.git file api: MDL-18111 Improve doc comments a bit. --- diff --git a/lib/file/file_browser.php b/lib/file/file_browser.php index 6cbd6ef387..ff2a0afd1b 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 eaa3fa95b6..14ceb83080 100644 --- a/lib/file/file_info.php +++ b/lib/file/file_info.php @@ -1,5 +1,8 @@