ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilModule Class Reference

ILIAS Module. More...

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

Public Member Functions

 __construct ()
 Constructor: read information on component. More...
 
 getName ()
 Get Name. More...
 
- Public Member Functions inherited from ilComponent
 getVersion ()
 Get Version Number of Component. More...
 
 isCore ()
 
 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 getComponentType ()
 Get Component Type. More...
 
static getAvailableCoreModules ()
 Get all available core modules. More...
 
- Static Public Member Functions inherited from ilComponent
static getComponentType ()
 
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 82 of file class.ilModule.php.

References $file, and array.

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

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

◆ getComponentType()

static ilModule::getComponentType ( )
staticfinal

Get Component Type.

Returns
string Component Type

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

References IL_COMP_MODULE.

58  {
59  return IL_COMP_MODULE;
60  }
const IL_COMP_MODULE

◆ getName()

ilModule::getName ( )
final

Get Name.

Returns
string Name

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

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

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