ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilModule Class Reference

ILIAS Module. More...

+ Inheritance diagram for ilModule:
+ Collaboration diagram for ilModule:

Public Member Functions

 __construct ()
 Constructor: read information on component.
 getName ()
 Get Name.
- Public Member Functions inherited from ilComponent
 getVersion ()
 Get Version Number of Component.
 isCore ()
 setId ($a_id)
 Set Id.
 getId ()
 Get Id.
 setPluginSlots ($a_pluginslots)
 Set Plugin Slots.
 getPluginSlots ()
 Get Plugin Slots.
 setSubDirectory ($a_subdirectory)
 Set Sub Directory.
 getSubDirectory ()
 Get Sub Directory.
 getPluginSlotName ($a_id)
 Get name of plugin slot.
 getPluginSlotDirectory ($a_id)
 Get directory of plugin slot.
 getPluginSlotLanguagePrefix ($a_id)
 Get language prefix for plugin slot.

Static Public Member Functions

static getComponentType ()
 Get Component Type.
static getAvailableCoreModules ()
 Get all available core modules.
- Static Public Member Functions inherited from ilComponent
static getComponentObject ($a_ctype, $a_cname)
 Get component object.
static lookupPluginSlots ($a_type, $a_name)
 Lookup all plugin slots of a component.
static lookupId ($a_type, $a_name)
 Lookup ID of a component.
static checkVersionNumber ($a_ver)
 Check version number.
static isVersionGreaterString ($a_ver1, $a_ver2)
static isVersionGreater ($a_ver1, $a_ver2)
 Check whether version number is greater than another version number.

Detailed Description

ILIAS Module.

Modules handle resource object types (one or more), that can be added to the repository, e.g. forums, glossaries, ...

Modules are ILIAS components, like services. Services can also handle resource object types, but only administrative ones.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 41 of file class.ilModule.php.

Constructor & Destructor Documentation

ilModule::__construct ( )

Constructor: read information on component.

Reimplemented from ilComponent.

Reimplemented in ilSurveyQuestionPoolModule, and ilTestQuestionPoolModule.

Definition at line 47 of file class.ilModule.php.

Member Function Documentation

static ilModule::getAvailableCoreModules ( )
staticfinal

Get all available core modules.

Core modules are located in the main ILIAS/Modules folder and provide a module.xml file that includes information about the module.

Returns
array array of module names (strings)

Definition at line 82 of file class.ilModule.php.

References $file, and ILIAS_ABSOLUTE_PATH.

Referenced by ilPluginsOverviewTableGUI\getComponents(), ilComponentsTableGUI\getComponents(), ilDBUpdate\loadXMLInfo(), and ilSetupGUI\reloadControlStructure().

{
$modules_dir = ILIAS_ABSOLUTE_PATH."/Modules";
if (!@is_dir($modules_dir))
{
return array();
}
// read current directory
$dir = opendir($modules_dir);
$modules = array();
while($file = readdir($dir))
{
if ($file != "." and
$file != "..")
{
// directories
if (@is_dir($modules_dir."/".$file))
{
if (@is_file($modules_dir."/".$file."/module.xml"))
{
$modules[] = array("subdir" => $file);
}
}
}
}
return $modules;
}

+ Here is the caller graph for this function:

static ilModule::getComponentType ( )
staticfinal

Get Component Type.

Returns
string Component Type

Reimplemented from ilComponent.

Definition at line 57 of file class.ilModule.php.

References IL_COMP_MODULE.

{
}
ilModule::getName ( )
final

Get Name.

Returns
string Name

Reimplemented from ilComponent.

Definition at line 67 of file class.ilModule.php.

{
// class is always il<ModuleName>Module
$class = get_class($this);
return substr($class, 2, strlen($class) - 8);
}

The documentation for this class was generated from the following file: