[Hw4mdl-svn] SF.net SVN: hw4mdl: [49] trunk/moodle/mod/liveclassroom/lib.php
Brought to you by:
jhlinder,
trollinger
From: <sh...@us...> - 2006-08-25 12:36:52
|
Revision: 49 Author: shazan Date: 2006-08-25 05:36:42 -0700 (Fri, 25 Aug 2006) ViewCVS: http://svn.sourceforge.net/hw4mdl/?rev=49&view=rev Log Message: ----------- link the LC server to the LC moodle database Modified Paths: -------------- trunk/moodle/mod/liveclassroom/lib.php Modified: trunk/moodle/mod/liveclassroom/lib.php =================================================================== --- trunk/moodle/mod/liveclassroom/lib.php 2006-08-25 12:35:45 UTC (rev 48) +++ trunk/moodle/mod/liveclassroom/lib.php 2006-08-25 12:36:42 UTC (rev 49) @@ -315,7 +315,7 @@ /** * Counts the number of rooms available for this course * @param string the courseid - * @return string the numlber of classrooms available for this course + * @return string the number of classrooms available for this course */ function liveclassroom_count_rooms($courseid) { return '0'; @@ -384,8 +384,6 @@ } - - /* * Get the type number of liveclassroom */ @@ -408,7 +406,20 @@ return $name.'_'.$typename; } +/* +* Check if the room exist in the moodle database liveclassroom_rooms +* +*/ +function liveclassroom_rooms_exists($liveclassroom) { + + if(!get_records('liveclassroom_rooms','lc_id',$liveclassroom->id)) { + return false; + } + else return true; + + +} ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |