]> git.mjollnir.org Git - moodle.git/commitdiff
Updated the dox
authormoodler <moodler>
Sat, 7 Dec 2002 04:37:21 +0000 (04:37 +0000)
committermoodler <moodler>
Sat, 7 Dec 2002 04:37:21 +0000 (04:37 +0000)
lib/makeclass.php

index 1cb2db419927de346478d165b0740aaaf6ac8b3f..35768d6dfdc1079912c1a54f604eab3c9ddc9619 100644 (file)
@@ -1,9 +1,19 @@
 <?PHP // $Id$
 
-// This file is currently optional within Moodle - see config-dist.php
+// This file is not used by Moodle itself.
 //
 // It exists to provide a more object-oriented interface to some of 
 // Moodle's main library functions, for use by external programs.
+// 
+// Thanks to Greg Barnett from Crown College for this code
+
+// Usage example (from an external program):
+// 
+//     require("blah/moodle/lib/makeclass.php"); 
+//     makeClassFromFile("blah/moodle/lib/moodlelib.php", "moodlelib"); 
+//
+//     moodle::isteacher($courseID);    // for example ... 
+//
 
 
 function makeClassFromFile($file, $classname) {