SloodleModuleChatThe Sloodle chat module class.
Located in /lib/modules/module_chat.php (line 23)
SloodleModule | --SloodleModuleChat
object
$cm
= null (line 33)
Internal for Moodle only - course module instance.
Corresponds to one record from the Moodle 'course_modules' table.
object
$moodle_chat_instance
= null (line 41)
Internal only - Moodle chat module instance database object.
Corresponds to one record from the Moodle 'chat' table.
Inherited from SloodleModule
SloodleModule::$_session
Constructor
Adds a new chat message.
Note: if the $author parameter is omitted or invalid, then the function will attempt to use the SloodleUser member of the current SloodleSession object; If that is unavailable, then it will try to use the user currently 'logged-in' to the VLE (i.e. the $USER variable in Moodle). If all else fails, it will attempt to attribute the message to the guest user.
Gets a recent history of messages from the chatroom.
Gets the identifier of the course this controller belongs to.
Gets the time at which this instance was created, or 0 if unknown.
Gets the intro description of this module instance, if available.
Gets the time at which this instance was last modified, or 0 if unknown.
Gets the name of this module instance.
Gets the short type name of this instance.
Gets the full type name of this instance, according to the current language pack, if available.
Note: should be overridden by sub-classes.
Loads data from the database.
Note: even if the function fails, it may still have overwritten some or all existing data in the object.
Inherited From SloodleModule
SloodleModule::SloodleModule()
SloodleModule::get_course_id()
SloodleModule::get_creation_time()
SloodleModule::get_intro()
SloodleModule::get_modification_time()
SloodleModule::get_name()
SloodleModule::get_type()
SloodleModule::get_type_full()
SloodleModule::load()
Documentation generated on Fri, 17 Jul 2009 11:01:56 +0100 by phpDocumentor 1.4.0