ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilModule Class Reference

ILIAS Module. More...

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

Public Member Functions

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

Static Public Member Functions

static getAvailableCoreModules ()
 Get all available core modules. More...
 
- Static Public Member Functions inherited from ilComponent
static getComponentObject ($a_ctype, $a_cname)
 Get component object. More...
 
static lookupPluginSlots ($a_type, $a_name)
 Lookup all plugin slots of a component. More...
 
static lookupId ($a_type, $a_name)
 Lookup ID of a component. More...
 
static getComponentInfo ($a_type, $a_name)
 
static checkVersionNumber ($a_ver)
 Check version number. More...
 
static isVersionGreaterString ($a_ver1, $a_ver2)
 
static isVersionGreater (string $version1, string $version2)
 
static lookupComponentName ($a_component_id)
 lookup component name type $ilDB More...
 
static getAll ()
 Get all. More...
 

Additional Inherited Members

- Protected Attributes inherited from ilComponent
 $global_cache
 

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

◆ __construct()

ilModule::__construct ( )

Constructor: read information on component.

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

48  {
49  parent::__construct();
50  }

Member Function Documentation

◆ getAvailableCoreModules()

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 80 of file class.ilModule.php.

Referenced by ilObjRepositorySettings\getAllObjTypes(), ilComponentsTableGUI\getComponents(), ilModulesTableGUI\getComponents(), ilPluginsOverviewTableGUI\getModulesCoreItems(), ilDBUpdate\loadXMLInfo(), and ilSetupGUI\reloadControlStructure().

81  {
82  $modules_dir = ILIAS_ABSOLUTE_PATH . "/Modules";
83 
84  if (!@is_dir($modules_dir)) {
85  return array();
86  }
87 
88  // read current directory
89  $dir = opendir($modules_dir);
90 
91  $modules = array();
92  while ($file = readdir($dir)) {
93  if ($file != "." and
94  $file != "..") {
95  // directories
96  if (@is_dir($modules_dir . "/" . $file)) {
97  if (@is_file($modules_dir . "/" . $file . "/module.xml")) {
98  $modules[] = array("subdir" => $file);
99  }
100  }
101  }
102  }
103  return $modules;
104  }
+ Here is the caller graph for this function:

◆ getComponentType()

ilModule::getComponentType ( )
final

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

References IL_COMP_MODULE.

55  : string
56  {
57  return IL_COMP_MODULE;
58  }
const IL_COMP_MODULE

◆ getName()

ilModule::getName ( )
final

Get Name.

Returns
string Name

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

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

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