File/lib/modules.php

Description

This file brings all of the Sloodle module classes together.

It also provides functionality to create and load different module types.

Includes
 include_once ($MODULESPATH.'/'.$mf) (line 29)
 require_once (SLOODLE_LIBROOT.'/modules/module_base.php') (line 17)

Base module.

Functions
sloodle_load_module (line 60)

Constructs a appropriate Sloodle module object based on the named type.

  • return: Returns the cosntructed module object, or false if it fails
SloodleModule|bool sloodle_load_module (string $type, SloodleSession &$_session, [mixed $id = null])
  • string $type: The type of module to construct - typically a short name, such as 'chat' or 'blog'
  • SloodleSession &$_session: The SloodleSession object to pass to the module on construction, or just null
  • mixed $id: The identifier of the module instance to load from the database (or null if there is no module data)

Documentation generated on Mon, 07 Jul 2008 12:32:47 +0100 by phpDocumentor 1.4.0