Source for file module_base.php
Documentation is available at module_base.php
// This file is part of the Sloodle project (www.sloodle.org)
* This file defines the base class for Sloodle modules.
* (Each module is effectively a sub-type of the Moodle module).
* @copyright Copyright (c) 2008 Sloodle (various contributors)
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU GPL v3
* @contributor Peter R. Bloomfield
* Sloodle module base class.
* An abstract class which must be overridden by sub-classes.
* Reference to the containing {@link SloodleSession} object.
* If null, then this module is being used outwith the framework.
* <b>Always check the status of the variable before using it!</b>
* Constructor - initialises the session variable
* @param object &$_session A reference to the containing {@link SloodleSession} object, if available.
* Loads data from the database.
* Note: even if the function fails, it may still have overwritten some or all existing data in the object.
* @param 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)
* @return bool True if successful, or false otherwise
* Gets the name of this module instance.
* @return string The name of this controller
* Gets the intro description of this module instance, if available.
* @return string The intro description of this controller
* Gets the identifier of the course this controller belongs to.
* @return mixed Course identifier. Type depends on VLE. (In Moodle, it will be an integer).
* Gets the time at which this instance was created, or 0 if unknown.
* Gets the time at which this instance was last modified, or 0 if unknown.
* 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.
* @return string Full type name if possible, or the short name otherwise.
Documentation generated on Fri, 17 Jul 2009 11:01:52 +0100 by phpDocumentor 1.4.0