ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
parses the objects.xml it handles the xml-description of all ilias objects More...
Public Member Functions | |
__construct () | |
Constructor. More... | |
readDefinitionData () | |
Read object definition data. More... | |
getClassName ($a_obj_name) | |
get class name by type More... | |
getLocation ($a_obj_name) | |
get location by type More... | |
getGroup ($a_id) | |
Get Group information. More... | |
getGroupOfObj ($a_obj_name) | |
Get Group of object type. More... | |
hasCheckbox ($a_obj_name) | |
should the object get a checkbox (needed for 'cut','copy' ...) More... | |
getTranslationType ($a_obj_name) | |
get translation type (sys, db or 0)s More... | |
stopInheritance ($a_obj_name) | |
Does object permits stopping inheritance? More... | |
getDevMode ($a_obj_name) | |
get devmode status by type More... | |
getDevModeAll () | |
get all object types in devmode More... | |
isRBACObject ($a_obj_name) | |
get RBAC status by type returns true if object type is a RBAC object type More... | |
isPlugin ($a_obj_name) | |
get RBAC status by type returns true if object type is an (activated) plugin type More... | |
isPluginTypeName ($a_str) | |
Check if given type is a plugin type name (starts with an "x") More... | |
isActivePluginType ($type) | |
Returns true iff the given type is an active type of a repositoryObject or Organisation Unit Extension plugin. More... | |
getAllRBACObjects () | |
get all RBAC object types More... | |
getAllObjects () | |
get all object types More... | |
allowLink ($a_obj_name) | |
checks if linking of an object type is allowed More... | |
allowCopy ($a_obj_name) | |
checks if copying of an object type is allowed More... | |
allowExport ($a_obj_name) | |
hasLocalRoles ($a_obj_type) | |
Check whether the creation of local roles is allowed Currently disabled for type "root" and "adm". More... | |
getSubObjects ($a_obj_type, $a_filter=true) | |
get all subobjects by type More... | |
getSubObjectsRecursively ($a_obj_type, $a_include_source_obj=true, $a_add_admin_objects=false) | |
Get all subobjects by type. More... | |
getSubobjectsToFilter ($a_obj_type="adm") | |
get all subjects except (rolf) of the adm object This is necessary for filtering these objects in role perm view. More... | |
getCreatableSubObjects ($a_obj_type, $a_context=self::MODE_REPOSITORY, $a_parent_ref_id=null) | |
get only creatable subobjects by type More... | |
getSubObjectsAsString ($a_obj_type) | |
get a string of all subobjects by type More... | |
isContainer ($a_obj_name) | |
Check if object type is container ('crs','fold','grp' ...) More... | |
setHandlers ($a_xml_parser) | |
set event handler More... | |
handlerBeginTag ($a_xml_parser, $a_name, $a_attribs) | |
start tag handler More... | |
handlerCharacterData ($a_xml_parser, $a_data) | |
end tag handler More... | |
handlerEndTag ($a_xml_parser, $a_name) | |
end tag handler More... | |
__filterObjects (&$subobjects) | |
isSystemObject ($a_obj_name) | |
checks if object type is a system object More... | |
isSideBlock ($a_obj_name) | |
Check, whether object type is a side block. More... | |
isAllowedInRepository ($a_obj_name) | |
checks if object type can be used in repository context More... | |
getAllRepositoryTypes ($a_incl_adm=false) | |
get all RBAC object types More... | |
isAllowedInWorkspace ($a_obj_name) | |
checks if object type can be used in workspace context More... | |
isAdministrationObject ($a_obj_name) | |
Check if administration object. More... | |
isInactivePlugin ($a_type) | |
Check whether type belongs to inactive plugin. More... | |
getAdvancedMetaDataTypes () | |
Get advanced meta data objects. More... | |
getOrgUnitPermissionTypes () | |
Get object type with orgunit position permission support. More... | |
getLTIProviderTypes () | |
Get object types which offer lti provider support. More... | |
isOrgUnitPermissionType ($a_obj_type) | |
Check if object type offers orgunit position support. More... | |
getPositionByType ($a_type) | |
Get Position By Object Type. More... | |
getPlugins () | |
Get plugin object info. More... | |
getExplorerContainerTypes () | |
Get all object types which are defined as container in an explorer context. More... | |
Static Public Member Functions | |
static | getRepositoryObjectTypesForComponent ( $a_component_type, $a_component_name) |
Get all repository object types of component. More... | |
static | getComponentForType ($a_obj_type) |
Get component for object type. More... | |
static | getGroupedRepositoryObjectTypes ($a_parent_obj_type) |
Data Fields | |
$obj_id | |
$parent | |
$obj_data | |
$sub_types = array() | |
const | MODE_REPOSITORY = 1 |
const | MODE_WORKSPACE = 2 |
const | MODE_ADMINISTRATION = 3 |
Protected Member Functions | |
readDefinitionDataFromCache () | |
readDefinitionDataFromDB () | |
readPluginData () | |
Loads the different plugins into the object definition. More... | |
parsePluginData ($component, $slotName, $slotId, $isInAdministration) | |
loads a single plugin definition into the object definition More... | |
Static Protected Member Functions | |
static | getGroupedPluginObjectTypes ($grouped_obj, $component, $slotName, $slotId) |
Protected Attributes | |
$plugin_admin | |
$settings | |
parses the objects.xml it handles the xml-description of all ilias objects
ilObjDefReader on il_object_def, il_object_subobj, il_object_group
Definition at line 15 of file class.ilObjectDefinition.php.
ilObjectDefinition::__construct | ( | ) |
Constructor.
Definition at line 58 of file class.ilObjectDefinition.php.
References $DIC, readDefinitionData(), and settings().
ilObjectDefinition::__filterObjects | ( | & | $subobjects | ) |
Definition at line 789 of file class.ilObjectDefinition.php.
Referenced by getSubObjects().
ilObjectDefinition::allowCopy | ( | $a_obj_name | ) |
checks if copying of an object type is allowed
string | object type public |
Definition at line 470 of file class.ilObjectDefinition.php.
ilObjectDefinition::allowExport | ( | $a_obj_name | ) |
Definition at line 475 of file class.ilObjectDefinition.php.
ilObjectDefinition::allowLink | ( | $a_obj_name | ) |
checks if linking of an object type is allowed
string | object type public |
Definition at line 459 of file class.ilObjectDefinition.php.
ilObjectDefinition::getAdvancedMetaDataTypes | ( | ) |
Get advanced meta data objects.
Definition at line 990 of file class.ilObjectDefinition.php.
References $sub_types, $t, $type, and array.
ilObjectDefinition::getAllObjects | ( | ) |
get all object types
public
Definition at line 448 of file class.ilObjectDefinition.php.
ilObjectDefinition::getAllRBACObjects | ( | ) |
get all RBAC object types
public
Definition at line 429 of file class.ilObjectDefinition.php.
References $type, array, and isRBACObject().
ilObjectDefinition::getAllRepositoryTypes | ( | $a_incl_adm = false | ) |
get all RBAC object types
public
Definition at line 933 of file class.ilObjectDefinition.php.
References $type, array, isAdministrationObject(), and isAllowedInRepository().
ilObjectDefinition::getClassName | ( | $a_obj_name | ) |
get class name by type
string | object type public |
Definition at line 245 of file class.ilObjectDefinition.php.
|
static |
Get component for object type.
Definition at line 858 of file class.ilObjectDefinition.php.
References $DIC, $ilDB, and array.
ilObjectDefinition::getCreatableSubObjects | ( | $a_obj_type, | |
$a_context = self::MODE_REPOSITORY , |
|||
$a_parent_ref_id = null |
|||
) |
get only creatable subobjects by type
string | object type |
integer | context |
integer | parent_ref_id public |
Definition at line 656 of file class.ilObjectDefinition.php.
References $sub_types, $type, ilObjStudyProgramme\getCreatableSubObjects(), getDevMode(), getSubObjects(), isAdministrationObject(), isAllowedInRepository(), isAllowedInWorkspace(), and isSystemObject().
ilObjectDefinition::getDevMode | ( | $a_obj_name | ) |
get devmode status by type
string | object type public |
Definition at line 341 of file class.ilObjectDefinition.php.
Referenced by getCreatableSubObjects(), getDevModeAll(), and getSubObjectsRecursively().
ilObjectDefinition::getDevModeAll | ( | ) |
get all object types in devmode
public
Definition at line 352 of file class.ilObjectDefinition.php.
References $type, array, and getDevMode().
ilObjectDefinition::getExplorerContainerTypes | ( | ) |
Get all object types which are defined as container in an explorer context.
Definition at line 1085 of file class.ilObjectDefinition.php.
References $res, $type, array, getGroupOfObj(), getSubObjectsRecursively(), and isContainer().
ilObjectDefinition::getGroup | ( | $a_id | ) |
Get Group information.
Definition at line 265 of file class.ilObjectDefinition.php.
|
staticprotected |
$grouped_obj | |
$component | |
$slotName | |
$slotId | |
$plugin_id |
Definition at line 217 of file class.ilObjectDefinition.php.
References $DIC, array, and ilPlugin\lookupIdForName().
|
static |
$a_parent_obj_type |
Definition at line 881 of file class.ilObjectDefinition.php.
References $DIC, $ilDB, $ret, array, ilDBConstants\FETCHMODE_ASSOC, ilCachedComponentData\getInstance(), IL_COMP_MODULE, IL_COMP_SERVICE, and ilUtil\sortArray().
ilObjectDefinition::getGroupOfObj | ( | $a_obj_name | ) |
Get Group of object type.
Definition at line 273 of file class.ilObjectDefinition.php.
Referenced by getExplorerContainerTypes().
ilObjectDefinition::getLocation | ( | $a_obj_name | ) |
get location by type
string | object type public |
Definition at line 257 of file class.ilObjectDefinition.php.
ilObjectDefinition::getLTIProviderTypes | ( | ) |
Get object types which offer lti provider support.
Definition at line 1029 of file class.ilObjectDefinition.php.
References $type.
ilObjectDefinition::getOrgUnitPermissionTypes | ( | ) |
Get object type with orgunit position permission support.
Definition at line 1014 of file class.ilObjectDefinition.php.
References $type.
Referenced by isOrgUnitPermissionType().
ilObjectDefinition::getPlugins | ( | ) |
Get plugin object info.
Definition at line 1069 of file class.ilObjectDefinition.php.
References $type, array, and isPlugin().
ilObjectDefinition::getPositionByType | ( | $a_type | ) |
Get Position By Object Type.
$a_type |
Definition at line 1056 of file class.ilObjectDefinition.php.
References $a_type, $ilSetting, and $settings.
|
static |
Get all repository object types of component.
Definition at line 831 of file class.ilObjectDefinition.php.
References $DIC, $ilDB, and array.
ilObjectDefinition::getSubObjects | ( | $a_obj_type, | |
$a_filter = true |
|||
) |
get all subobjects by type
string | object type |
boolean | filter disabled objects? (default: true) public |
Definition at line 504 of file class.ilObjectDefinition.php.
References $data, $ilSetting, $settings, __filterObjects(), array, and ilUtil\sortArray().
Referenced by getCreatableSubObjects(), and getSubObjectsRecursively().
ilObjectDefinition::getSubObjectsAsString | ( | $a_obj_type | ) |
get a string of all subobjects by type
string | object type public |
Definition at line 696 of file class.ilObjectDefinition.php.
References $data.
ilObjectDefinition::getSubObjectsRecursively | ( | $a_obj_type, | |
$a_include_source_obj = true , |
|||
$a_add_admin_objects = false |
|||
) |
Get all subobjects by type.
This function returns all subobjects allowed by the provided object type and all its subobject types recursively.
This function is used to create local role templates. It is important, that we do not filter out any objects here!
string | object type public |
Definition at line 550 of file class.ilObjectDefinition.php.
References $data, $ilSetting, $settings, $type, array, getDevMode(), getSubObjects(), isRBACObject(), and ilUtil\sortArray().
Referenced by getExplorerContainerTypes().
ilObjectDefinition::getSubobjectsToFilter | ( | $a_obj_type = "adm" | ) |
get all subjects except (rolf) of the adm object This is necessary for filtering these objects in role perm view.
e.g It it not necessary to view/edit role permission for the usrf object since it's not possible to create a new one
string | object type public |
Definition at line 627 of file class.ilObjectDefinition.php.
ilObjectDefinition::getTranslationType | ( | $a_obj_name | ) |
get translation type (sys, db or 0)s
string | object type public |
Definition at line 295 of file class.ilObjectDefinition.php.
References $DIC, $ilDB, and ilDBConstants\FETCHMODE_ASSOC.
ilObjectDefinition::handlerBeginTag | ( | $a_xml_parser, | |
$a_name, | |||
$a_attribs | |||
) |
start tag handler
ressouce | internal xml_parser_handler |
string | element tag name |
array | element attributes private |
Definition at line 748 of file class.ilObjectDefinition.php.
ilObjectDefinition::handlerCharacterData | ( | $a_xml_parser, | |
$a_data | |||
) |
end tag handler
ressouce | internal xml_parser_handler |
string | data private |
Definition at line 771 of file class.ilObjectDefinition.php.
ilObjectDefinition::handlerEndTag | ( | $a_xml_parser, | |
$a_name | |||
) |
end tag handler
ressouce | internal xml_parser_handler |
string | element tag name private |
Definition at line 782 of file class.ilObjectDefinition.php.
ilObjectDefinition::hasCheckbox | ( | $a_obj_name | ) |
should the object get a checkbox (needed for 'cut','copy' ...)
string | object type public |
Definition at line 284 of file class.ilObjectDefinition.php.
ilObjectDefinition::hasLocalRoles | ( | $a_obj_type | ) |
Check whether the creation of local roles is allowed Currently disabled for type "root" and "adm".
Definition at line 485 of file class.ilObjectDefinition.php.
ilObjectDefinition::isActivePluginType | ( | $type | ) |
Returns true iff the given type is an active type of a repositoryObject or Organisation Unit Extension plugin.
$type |
Definition at line 405 of file class.ilObjectDefinition.php.
References $plugin_admin, $type, IL_COMP_MODULE, IL_COMP_SERVICE, and ilPlugin\lookupNameForId().
ilObjectDefinition::isAdministrationObject | ( | $a_obj_name | ) |
Check if administration object.
string | $a_obj_name |
Definition at line 965 of file class.ilObjectDefinition.php.
Referenced by getAllRepositoryTypes(), and getCreatableSubObjects().
ilObjectDefinition::isAllowedInRepository | ( | $a_obj_name | ) |
checks if object type can be used in repository context
string | object type public |
Definition at line 922 of file class.ilObjectDefinition.php.
Referenced by getAllRepositoryTypes(), and getCreatableSubObjects().
ilObjectDefinition::isAllowedInWorkspace | ( | $a_obj_name | ) |
checks if object type can be used in workspace context
string | object type public |
Definition at line 955 of file class.ilObjectDefinition.php.
Referenced by getCreatableSubObjects().
ilObjectDefinition::isContainer | ( | $a_obj_name | ) |
Check if object type is container ('crs','fold','grp' ...)
public
string | object type |
Definition at line 717 of file class.ilObjectDefinition.php.
Referenced by getExplorerContainerTypes().
ilObjectDefinition::isInactivePlugin | ( | $a_type | ) |
Check whether type belongs to inactive plugin.
Definition at line 976 of file class.ilObjectDefinition.php.
References $a_type, and isPlugin().
ilObjectDefinition::isOrgUnitPermissionType | ( | $a_obj_type | ) |
Check if object type offers orgunit position support.
string | $obj_type |
Definition at line 1045 of file class.ilObjectDefinition.php.
References getOrgUnitPermissionTypes().
ilObjectDefinition::isPlugin | ( | $a_obj_name | ) |
get RBAC status by type returns true if object type is an (activated) plugin type
string | object type public |
Definition at line 384 of file class.ilObjectDefinition.php.
Referenced by getPlugins(), and isInactivePlugin().
ilObjectDefinition::isPluginTypeName | ( | $a_str | ) |
Check if given type is a plugin type name (starts with an "x")
string | object type public |
Definition at line 395 of file class.ilObjectDefinition.php.
ilObjectDefinition::isRBACObject | ( | $a_obj_name | ) |
get RBAC status by type returns true if object type is a RBAC object type
string | object type public |
Definition at line 372 of file class.ilObjectDefinition.php.
Referenced by getAllRBACObjects(), and getSubObjectsRecursively().
ilObjectDefinition::isSideBlock | ( | $a_obj_name | ) |
Check, whether object type is a side block.
string | object type |
Definition at line 823 of file class.ilObjectDefinition.php.
ilObjectDefinition::isSystemObject | ( | $a_obj_name | ) |
checks if object type is a system object
system objects are those object types that are only used for internal purposes and to keep the object type model consistent. Typically they are used in the administation, exist only once and may contain only specific object types. To mark an object type as a system object type, use 'system=1' in the object definition in objects.xml
string | object type public |
Definition at line 812 of file class.ilObjectDefinition.php.
Referenced by getCreatableSubObjects().
|
protected |
loads a single plugin definition into the object definition
$component | The component e.g. IL_COMP_SERVICE |
$slotName | The Slot name, e.g. Repository |
$slotId | the slot id, e.g. robj |
$isInAdministration,can | the object be created in the administration? |
Definition at line 1145 of file class.ilObjectDefinition.php.
References $plugin_admin, ilPlugin\_getDirectory(), array, ilObjectPlugin\getRepoPluginObjectByType(), and ilPlugin\lookupIdForName().
Referenced by readPluginData().
ilObjectDefinition::readDefinitionData | ( | ) |
Read object definition data.
Definition at line 199 of file class.ilObjectDefinition.php.
References ilGlobalCache\COMP_COMPONENT, ilGlobalCache\getInstance(), readDefinitionDataFromCache(), and readDefinitionDataFromDB().
Referenced by __construct().
|
protected |
Definition at line 68 of file class.ilObjectDefinition.php.
References array, ilCachedComponentData\getInstance(), and readPluginData().
Referenced by readDefinitionData().
|
protected |
Definition at line 124 of file class.ilObjectDefinition.php.
References $DIC, $ilDB, array, and readPluginData().
Referenced by readDefinitionData().
|
protected |
Loads the different plugins into the object definition.
Definition at line 1132 of file class.ilObjectDefinition.php.
References IL_COMP_MODULE, IL_COMP_SERVICE, and parsePluginData().
Referenced by readDefinitionDataFromCache(), and readDefinitionDataFromDB().
ilObjectDefinition::setHandlers | ( | $a_xml_parser | ) |
set event handler
ressouce | internal xml_parser_handler private |
Definition at line 733 of file class.ilObjectDefinition.php.
ilObjectDefinition::stopInheritance | ( | $a_obj_name | ) |
Does object permits stopping inheritance?
string | object type public |
Definition at line 330 of file class.ilObjectDefinition.php.
ilObjectDefinition::$obj_data |
Definition at line 47 of file class.ilObjectDefinition.php.
ilObjectDefinition::$obj_id |
Definition at line 33 of file class.ilObjectDefinition.php.
ilObjectDefinition::$parent |
Definition at line 40 of file class.ilObjectDefinition.php.
|
protected |
Definition at line 20 of file class.ilObjectDefinition.php.
Referenced by isActivePluginType(), and parsePluginData().
|
protected |
Definition at line 25 of file class.ilObjectDefinition.php.
Referenced by getPositionByType(), getSubObjects(), and getSubObjectsRecursively().
ilObjectDefinition::$sub_types = array() |
Definition at line 49 of file class.ilObjectDefinition.php.
Referenced by getAdvancedMetaDataTypes(), and getCreatableSubObjects().
const ilObjectDefinition::MODE_ADMINISTRATION = 3 |
Definition at line 53 of file class.ilObjectDefinition.php.
Referenced by ilObjOrgUnitGUI\showPossibleSubObjects().
const ilObjectDefinition::MODE_REPOSITORY = 1 |
Definition at line 51 of file class.ilObjectDefinition.php.
Referenced by ilObjectAddNewItemGUI\__construct(), ilTrQuery\getObjectTypeStatistics(), and ilObjectGUI\showPossibleSubObjects().
const ilObjectDefinition::MODE_WORKSPACE = 2 |
Definition at line 52 of file class.ilObjectDefinition.php.
Referenced by ilObjectAddNewItemGUI\getHTML(), ilObjectAddNewItemGUI\parsePersonalWorkspace(), ilObjWorkspaceFolderGUI\render(), and ilObjectAddNewItemGUI\render().