Class SloodleModule

Description

Sloodle module base class.

An abstract class which must be overridden by sub-classes.

Located in /lib/modules/module_base.php (line 20)


	
			
Direct descendents
Class Description
 class SloodleModuleAviLister The Sloodle AviLister module class.
 class SloodleModuleBlog The Sloodle blog module class.
 class SloodleModuleChat The Sloodle chat module class.
 class SloodleModuleChoice The Sloodle choice module class.
 class SloodleModuleDistributor The Sloodle Distributor module class.
 class SloodleModuleGlossary The Sloodle glossary module class.
 class SloodleModuleiBank The Sloodle StipendGiver module class.
 class SloodleModuleMap The Sloodle map resource module class.
 class SloodleModulePresenter The Sloodle presenter module class.
 class SloodleModuleSloodleObject The Sloodle Object assignment module class.
Variable Summary
 object $_session
Method Summary
 SloodleModule SloodleModule (object &$_session)
 mixed get_course_id ()
 string get_intro ()
 string get_name ()
 string get_type ()
 string get_type_full ()
 bool load (mixed $id)
Variables
object $_session = null (line 31)

Reference to the containing SloodleSession object.

If null, then this module is being used outwith the framework. Always check the status of the variable before using it!

  • access: protected
Methods
Constructor SloodleModule (line 40)

Constructor - initialises the session variable

SloodleModule SloodleModule (object &$_session)
  • object &$_session: A reference to the containing SloodleSession object, if available.
get_course_id (line 82)

Gets the identifier of the course this controller belongs to.

  • return: Course identifier. Type depends on VLE. (In Moodle, it will be an integer).
mixed get_course_id ()

Redefined in descendants as:
get_creation_time (line 91)

Gets the time at which this instance was created, or 0 if unknown.

  • return: Timestamp
int get_creation_time ()

Redefined in descendants as:
get_intro (line 73)

Gets the intro description of this module instance, if available.

  • return: The intro description of this controller
string get_intro ()

Redefined in descendants as:
get_modification_time (line 100)

Gets the time at which this instance was last modified, or 0 if unknown.

  • return: Timestamp
int get_modification_time ()

Redefined in descendants as:
get_name (line 64)

Gets the name of this module instance.

  • return: The name of this controller
string get_name ()

Redefined in descendants as:
get_type (line 110)

Gets the short type name of this instance.

string get_type ()

Redefined in descendants as:
get_type_full (line 120)

Gets the full type name of this instance, according to the current language pack, if available.

Note: should be overridden by sub-classes.

  • return: Full type name if possible, or the short name otherwise.
string get_type_full ()

Redefined in descendants as:
load (line 52)

Loads data from the database.

Note: even if the function fails, it may still have overwritten some or all existing data in the object.

  • return: True if successful, or false otherwise
bool load (mixed $id)
  • mixed $id: The site-wide unique identifier for all modules. Type depends on VLE. On Moodle, it is an integer course module identifier ('id' field of 'course_modules' table)

Redefined in descendants as:

Documentation generated on Fri, 17 Jul 2009 11:01:52 +0100 by phpDocumentor 1.4.0