|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
parses the objects.xml it handles the xml-description of all ilias objects More...
Collaboration diagram for ilObjectDefinition: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 neceesary 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... | |
| 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) |
parses the objects.xml it handles the xml-description of all ilias objects
@externalTableAccess ilObjDefReader on il_object_def, il_object_subobj, il_object_group
Definition at line 15 of file class.ilObjectDefinition.php.
| ilObjectDefinition::__construct | ( | ) |
Constructor.
setup ILIAS global object @access public
Definition at line 51 of file class.ilObjectDefinition.php.
References readDefinitionData().
Here is the call graph for this function:| ilObjectDefinition::__filterObjects | ( | & | $subobjects | ) |
Definition at line 817 of file class.ilObjectDefinition.php.
References $data.
Referenced by getSubObjects().
Here is the caller graph for this function:| ilObjectDefinition::allowCopy | ( | $a_obj_name | ) |
checks if copying of an object type is allowed
| string | object type @access public |
Definition at line 471 of file class.ilObjectDefinition.php.
| ilObjectDefinition::allowExport | ( | $a_obj_name | ) |
Definition at line 476 of file class.ilObjectDefinition.php.
| ilObjectDefinition::allowLink | ( | $a_obj_name | ) |
checks if linking of an object type is allowed
| string | object type @access public |
Definition at line 460 of file class.ilObjectDefinition.php.
| ilObjectDefinition::getAdvancedMetaDataTypes | ( | ) |
Get advanced meta data objects.
return
Definition at line 1018 of file class.ilObjectDefinition.php.
References $sub_types, and $t.
| ilObjectDefinition::getAllObjects | ( | ) |
get all object types
@access public
Definition at line 449 of file class.ilObjectDefinition.php.
| ilObjectDefinition::getAllRBACObjects | ( | ) |
get all RBAC object types
@access public
Definition at line 428 of file class.ilObjectDefinition.php.
References isRBACObject().
Here is the call graph for this function:| ilObjectDefinition::getAllRepositoryTypes | ( | $a_incl_adm = false | ) |
get all RBAC object types
@access public
Definition at line 958 of file class.ilObjectDefinition.php.
References isAdministrationObject(), and isAllowedInRepository().
Here is the call graph for this function:| ilObjectDefinition::getClassName | ( | $a_obj_name | ) |
get class name by type
| string | object type @access public |
Definition at line 247 of file class.ilObjectDefinition.php.
|
static |
Get component for object type.
Definition at line 884 of file class.ilObjectDefinition.php.
References $ilDB.
| 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 @access public |
Definition at line 676 of file class.ilObjectDefinition.php.
References $sub_types, ilObjStudyProgramme\getCreatableSubObjects(), getDevMode(), getSubObjects(), isAdministrationObject(), isAllowedInRepository(), isAllowedInWorkspace(), and isSystemObject().
Here is the call graph for this function:| ilObjectDefinition::getDevMode | ( | $a_obj_name | ) |
get devmode status by type
| string | object type @access public |
Definition at line 347 of file class.ilObjectDefinition.php.
Referenced by getCreatableSubObjects(), getDevModeAll(), and getSubObjectsRecursively().
Here is the caller graph for this function:| ilObjectDefinition::getDevModeAll | ( | ) |
get all object types in devmode
@access public
Definition at line 358 of file class.ilObjectDefinition.php.
References getDevMode().
Here is the call graph for this function:| ilObjectDefinition::getExplorerContainerTypes | ( | ) |
Get all object types which are defined as container in an explorer context.
Definition at line 1080 of file class.ilObjectDefinition.php.
References $res, getGroupOfObj(), getSubObjectsRecursively(), and isContainer().
Here is the call graph for this function:| ilObjectDefinition::getGroup | ( | $a_id | ) |
Get Group information.
Definition at line 267 of file class.ilObjectDefinition.php.
|
staticprotected |
| $grouped_obj | |
| $component | |
| $slotName | |
| $slotId | |
| $plugin_id |
Definition at line 222 of file class.ilObjectDefinition.php.
References ilPlugin\lookupIdForName().
Referenced by getGroupedRepositoryObjectTypes().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| $a_parent_obj_type |
Definition at line 903 of file class.ilObjectDefinition.php.
References $ilDB, $ret, ilDBConstants\FETCHMODE_ASSOC, getGroupedPluginObjectTypes(), ilCachedComponentData\getInstance(), IL_COMP_MODULE, IL_COMP_SERVICE, and ilUtil\sortArray().
Here is the call graph for this function:| ilObjectDefinition::getGroupOfObj | ( | $a_obj_name | ) |
Get Group of object type.
Definition at line 275 of file class.ilObjectDefinition.php.
Referenced by getExplorerContainerTypes().
Here is the caller graph for this function:| ilObjectDefinition::getLocation | ( | $a_obj_name | ) |
get location by type
| string | object type @access public |
Definition at line 259 of file class.ilObjectDefinition.php.
| ilObjectDefinition::getPlugins | ( | ) |
Get plugin object info.
Definition at line 1062 of file class.ilObjectDefinition.php.
References isPlugin().
Here is the call graph for this function:| ilObjectDefinition::getPositionByType | ( | $a_type | ) |
Get Position By Object Type.
| $a_type |
Definition at line 1049 of file class.ilObjectDefinition.php.
References $a_type, and $ilSetting.
|
static |
Get all repository object types of component.
Definition at line 861 of file class.ilObjectDefinition.php.
References $ilDB.
| ilObjectDefinition::getSubObjects | ( | $a_obj_type, | |
$a_filter = true |
|||
| ) |
get all subobjects by type
| string | object type |
| boolean | filter disabled objects? (default: true) @access public |
Definition at line 506 of file class.ilObjectDefinition.php.
References $data, $ilSetting, __filterObjects(), and ilUtil\sortArray().
Referenced by getCreatableSubObjects(), and getSubObjectsRecursively().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectDefinition::getSubObjectsAsString | ( | $a_obj_type | ) |
get a string of all subobjects by type
| string | object type @access public |
Definition at line 721 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 @access public |
Definition at line 557 of file class.ilObjectDefinition.php.
References $data, $ilSetting, getDevMode(), getSubObjects(), isRBACObject(), and ilUtil\sortArray().
Referenced by getExplorerContainerTypes().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectDefinition::getSubobjectsToFilter | ( | $a_obj_type = "adm" | ) |
get all subjects except (rolf) of the adm object This is neceesary 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 @access public |
Definition at line 646 of file class.ilObjectDefinition.php.
| ilObjectDefinition::getTranslationType | ( | $a_obj_name | ) |
get translation type (sys, db or 0)s
| string | object type @access public |
Definition at line 297 of file class.ilObjectDefinition.php.
References $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 @access private |
Definition at line 775 of file class.ilObjectDefinition.php.
| ilObjectDefinition::handlerCharacterData | ( | $a_xml_parser, | |
| $a_data | |||
| ) |
end tag handler
| ressouce | internal xml_parser_handler |
| string | data @access private |
Definition at line 799 of file class.ilObjectDefinition.php.
| ilObjectDefinition::handlerEndTag | ( | $a_xml_parser, | |
| $a_name | |||
| ) |
end tag handler
| ressouce | internal xml_parser_handler |
| string | element tag name @access private |
Definition at line 810 of file class.ilObjectDefinition.php.
| ilObjectDefinition::hasCheckbox | ( | $a_obj_name | ) |
should the object get a checkbox (needed for 'cut','copy' ...)
| string | object type @access public |
Definition at line 286 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 486 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 413 of file class.ilObjectDefinition.php.
References IL_COMP_MODULE, IL_COMP_SERVICE, and ilPlugin\lookupNameForId().
Here is the call graph for this function:| ilObjectDefinition::isAdministrationObject | ( | $a_obj_name | ) |
Check if administration object.
| string | $a_obj_name |
Definition at line 992 of file class.ilObjectDefinition.php.
Referenced by getAllRepositoryTypes(), and getCreatableSubObjects().
Here is the caller graph for this function:| ilObjectDefinition::isAllowedInRepository | ( | $a_obj_name | ) |
checks if object type can be used in repository context
| string | object type @access public |
Definition at line 947 of file class.ilObjectDefinition.php.
Referenced by getAllRepositoryTypes(), and getCreatableSubObjects().
Here is the caller graph for this function:| ilObjectDefinition::isAllowedInWorkspace | ( | $a_obj_name | ) |
checks if object type can be used in workspace context
| string | object type @access public |
Definition at line 982 of file class.ilObjectDefinition.php.
Referenced by getCreatableSubObjects().
Here is the caller graph for this function:| ilObjectDefinition::isContainer | ( | $a_obj_name | ) |
Check if object type is container ('crs','fold','grp' ...)
@access public
| string | object type |
Definition at line 743 of file class.ilObjectDefinition.php.
Referenced by getExplorerContainerTypes().
Here is the caller graph for this function:| ilObjectDefinition::isInactivePlugin | ( | $a_type | ) |
Check whether type belongs to inactive plugin.
return
Definition at line 1003 of file class.ilObjectDefinition.php.
References $a_type, and isPlugin().
Here is the call graph for this function:| ilObjectDefinition::isPlugin | ( | $a_obj_name | ) |
get RBAC status by type returns true if object type is an (activated) plugin type
| string | object type @access public |
Definition at line 392 of file class.ilObjectDefinition.php.
Referenced by getPlugins(), and isInactivePlugin().
Here is the caller graph for this function:| ilObjectDefinition::isPluginTypeName | ( | $a_str | ) |
Check if given type is a plugin type name (starts with an "x")
| string | object type @access public |
Definition at line 403 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 @access public |
Definition at line 380 of file class.ilObjectDefinition.php.
Referenced by getAllRBACObjects(), and getSubObjectsRecursively().
Here is the caller graph for this function:| ilObjectDefinition::isSideBlock | ( | $a_obj_name | ) |
Check, whether object type is a side block.
| string | object type |
Definition at line 853 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 @access public |
Definition at line 842 of file class.ilObjectDefinition.php.
Referenced by getCreatableSubObjects().
Here is the caller graph for this function:
|
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 1144 of file class.ilObjectDefinition.php.
References ilPlugin\_getDirectory(), ilObjectPlugin\getRepoPluginObjectByType(), and ilPlugin\lookupIdForName().
Referenced by readPluginData().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectDefinition::readDefinitionData | ( | ) |
Read object definition data.
Definition at line 204 of file class.ilObjectDefinition.php.
References ilGlobalCache\COMP_COMPONENT, ilGlobalCache\getInstance(), readDefinitionDataFromCache(), and readDefinitionDataFromDB().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 79 of file class.ilObjectDefinition.php.
References ilCachedComponentData\getInstance(), and readPluginData().
Referenced by readDefinitionData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 133 of file class.ilObjectDefinition.php.
References $ilDB, and readPluginData().
Referenced by readDefinitionData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectDefinition::setHandlers | ( | $a_xml_parser | ) |
set event handler
| ressouce | internal xml_parser_handler @access private |
Definition at line 760 of file class.ilObjectDefinition.php.
| ilObjectDefinition::stopInheritance | ( | $a_obj_name | ) |
Does object permits stopping inheritance?
| string | object type @access public |
Definition at line 336 of file class.ilObjectDefinition.php.
| ilObjectDefinition::$obj_data |
Definition at line 37 of file class.ilObjectDefinition.php.
| ilObjectDefinition::$obj_id |
Definition at line 23 of file class.ilObjectDefinition.php.
| ilObjectDefinition::$parent |
Definition at line 30 of file class.ilObjectDefinition.php.
| ilObjectDefinition::$sub_types = array() |
Definition at line 39 of file class.ilObjectDefinition.php.
Referenced by getAdvancedMetaDataTypes(), and getCreatableSubObjects().
| const ilObjectDefinition::MODE_ADMINISTRATION = 3 |
Definition at line 43 of file class.ilObjectDefinition.php.
Referenced by ilObjOrgUnitGUI\showPossibleSubObjects().
| const ilObjectDefinition::MODE_REPOSITORY = 1 |
Definition at line 41 of file class.ilObjectDefinition.php.
Referenced by ilObjectAddNewItemGUI\__construct(), ilTrQuery\getObjectTypeStatistics(), and ilObjectGUI\showPossibleSubObjects().
| const ilObjectDefinition::MODE_WORKSPACE = 2 |
Definition at line 42 of file class.ilObjectDefinition.php.
Referenced by ilObjectAddNewItemGUI\getHTML(), ilObjectAddNewItemGUI\parsePersonalWorkspace(), ilObjWorkspaceFolderGUI\render(), and ilObjectAddNewItemGUI\render().