diff --git a/lib/datalib.php b/lib/datalib.php index 4039b870012..5b9a35fce86 100644 --- a/lib/datalib.php +++ b/lib/datalib.php @@ -1,12 +1,17 @@ modinfo +* @param string $modulename the name of the module to get instances for +* @param object(course) $course this depends on an accurate $course->modinfo */ function get_all_instances_in_course($modulename, $course) { @@ -2068,7 +2073,7 @@ function get_all_instances_in_course($modulename, $course) { * and the module's type (eg "forum") returns whether the object * is visible or not * -* @param type description +* @param type description */ function instance_is_visible($moduletype, $module) { @@ -2103,13 +2108,13 @@ function instance_is_visible($moduletype, $module) { * than web server hits, and provide a way to easily reconstruct what * any particular student has been doing. * -* @param int $course the course id -* @param string $module the module name - e.g. forum, journal, resource, course, user etc -* @param string $action view, edit, post (often but not always the same as the file.php) -* @param string $url the file and parameters used to see the results of the action -* @param string $info additional description information -* @param string $cm the course_module->id if there is one -* @param string $user if log regards $user other than $USER +* @param int $course the course id +* @param string $module the module name - e.g. forum, journal, resource, course, user etc +* @param string $action view, edit, post (often but not always the same as the file.php) +* @param string $url the file and parameters used to see the results of the action +* @param string $info additional description information +* @param string $cm the course_module->id if there is one +* @param string $user if log regards $user other than $USER */ function add_to_log($courseid, $module, $action, $url="", $info="", $cm=0, $user=0) { @@ -2152,8 +2157,8 @@ function add_to_log($courseid, $module, $action, $url="", $info="", $cm=0, $user * * select all log records based on SQL criteria * -* @param string $select SQL select criteria -* @param string $order SQL order by clause to sort the records returned +* @param string $select SQL select criteria +* @param string $order SQL order by clause to sort the records returned */ function get_logs($select, $order="l.time DESC", $limitfrom="", $limitnum="", &$totalcount) { global $CFG; @@ -2191,7 +2196,7 @@ function get_logs($select, $order="l.time DESC", $limitfrom="", $limitnum="", &$ * * select all log records for a given course and user * -* @param type description +* @param type description */ function get_logs_usercourse($userid, $courseid, $coursestart) { global $CFG; @@ -2212,7 +2217,7 @@ function get_logs_usercourse($userid, $courseid, $coursestart) { * * select all log records for a given course, user, and day * -* @param type description +* @param type description */ function get_logs_userday($userid, $courseid, $daystart) { global $CFG; @@ -2236,7 +2241,7 @@ function get_logs_userday($userid, $courseid, $daystart) { * dump a given object's information in a PRE block * Mostly just for debugging * -* @param type description +* @param type description */ function print_object($object) {