ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilService Class Reference

ILIAS Service (A service provides cross-sectional functionalities, used by other components) More...

+ Inheritance diagram for ilService:
+ Collaboration diagram for ilService:

Public Member Functions

 getName ()
 Get Name.
- Public Member Functions inherited from ilComponent
 getVersion ()
 Get Version Number of Component.
 isCore ()
 __construct ()
 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 getAvailableCoreServices ()
 Get all available core services.
- 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 Service (A service provides cross-sectional functionalities, used by other components)

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

Definition at line 36 of file class.ilService.php.

Member Function Documentation

static ilService::getAvailableCoreServices ( )
staticfinal

Get all available core services.

Core services are located in the main ILIAS/Services folder and provide a service.xml file that includes information about the service. (please note that currently only a few services provide a service.xml file)

Returns
array array of services (assoc array, "name", "dir")

Definition at line 69 of file class.ilService.php.

References $dir, $file, and ILIAS_ABSOLUTE_PATH.

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

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

+ Here is the caller graph for this function:

static ilService::getComponentType ( )
staticfinal

Get Component Type.

Returns
string Component Type

Reimplemented from ilComponent.

Definition at line 43 of file class.ilService.php.

References IL_COMP_SERVICE.

{
}
ilService::getName ( )
final

Get Name.

Returns
string Name

Reimplemented from ilComponent.

Definition at line 53 of file class.ilService.php.

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

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