ILIAS
Release_5_0_x_branch Revision 61816
|
parses the objects.xml it handles the xml-description of all ilias objects More...
Public Member Functions | |
ilObjectDefinition () | |
Constructor. | |
readDefinitionData () | |
Read object definition data. | |
getClassName ($a_obj_name) | |
get class name by type | |
getLocation ($a_obj_name) | |
get location by type | |
getGroup ($a_id) | |
Get Group information. | |
getGroupOfObj ($a_obj_name) | |
Get Group of object type. | |
hasCheckbox ($a_obj_name) | |
should the object get a checkbox (needed for 'cut','copy' ...) | |
getTranslationType ($a_obj_name) | |
get translation type (sys, db or 0)s | |
stopInheritance ($a_obj_name) | |
Does object permits stopping inheritance? | |
getDevMode ($a_obj_name) | |
get devmode status by type | |
getDevModeAll () | |
get all object types in devmode | |
isRBACObject ($a_obj_name) | |
get RBAC status by type returns true if object type is a RBAC object type | |
isPlugin ($a_obj_name) | |
get RBAC status by type returns true if object type is an (activated) plugin type | |
isPluginTypeName ($a_str) | |
Check if given type is a plugin type name (starts with an "x") | |
getAllRBACObjects () | |
get all RBAC object types | |
getAllObjects () | |
get all object types | |
allowLink ($a_obj_name) | |
checks if linking of an object type is allowed | |
allowCopy ($a_obj_name) | |
checks if copying of an object type is allowed | |
allowExport ($a_obj_name) | |
hasLocalRoles ($a_obj_type) | |
Check whether the creation of local roles is allowed Currently disabled for type "root" and "adm". | |
getSubObjects ($a_obj_type, $a_filter=true) | |
get all subobjects by type | |
getSubObjectsRecursively ($a_obj_type, $a_include_source_obj=true, $a_add_admin_objects=false) | |
Get all subobjects by type. | |
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. | |
getCreatableSubObjects ($a_obj_type, $a_context=self::MODE_REPOSITORY) | |
get only creatable subobjects by type | |
getSubObjectsAsString ($a_obj_type) | |
get a string of all subobjects by type | |
isContainer ($a_obj_name) | |
Check if object type is container ('crs','fold','grp' ...) | |
setHandlers ($a_xml_parser) | |
set event handler | |
handlerBeginTag ($a_xml_parser, $a_name, $a_attribs) | |
start tag handler | |
handlerCharacterData ($a_xml_parser, $a_data) | |
end tag handler | |
handlerEndTag ($a_xml_parser, $a_name) | |
end tag handler | |
__filterObjects (&$subobjects) | |
isSystemObject ($a_obj_name) | |
checks if object type is a system object | |
isSideBlock ($a_obj_name) | |
Check, whether object type is a side block. | |
isAllowedInRepository ($a_obj_name) | |
checks if object type can be used in repository context | |
getAllRepositoryTypes ($a_incl_adm=false) | |
get all RBAC object types | |
isAllowedInWorkspace ($a_obj_name) | |
checks if object type can be used in workspace context | |
isAdministrationObject ($a_obj_name) | |
Check if administration object. | |
isInactivePlugin ($a_type) | |
Check whether type belongs to inactive plugin. | |
getAdvancedMetaDataTypes () | |
Get advanced meta data objects. | |
getPositionByType ($a_type) | |
Get Position By Object Type. | |
getPlugins () | |
Get plugin object info. |
Static Public Member Functions | |
static | getRepositoryObjectTypesForComponent ($a_component_type, $a_component_name) |
Get all repository object types of component. | |
static | getComponentForType ($a_obj_type) |
Get component for object type. | |
static | getGroupedRepositoryObjectTypes ($a_parent_obj_type) |
Get grouped repository object types. |
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 () |
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 14 of file class.ilObjectDefinition.php.
ilObjectDefinition::__filterObjects | ( | & | $subobjects | ) |
Definition at line 856 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 512 of file class.ilObjectDefinition.php.
ilObjectDefinition::allowExport | ( | $a_obj_name | ) |
Definition at line 517 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 501 of file class.ilObjectDefinition.php.
ilObjectDefinition::getAdvancedMetaDataTypes | ( | ) |
Get advanced meta data objects.
@return |
Definition at line 1103 of file class.ilObjectDefinition.php.
References $sub_types, and $t.
ilObjectDefinition::getAllObjects | ( | ) |
get all object types
public
Definition at line 490 of file class.ilObjectDefinition.php.
ilObjectDefinition::getAllRBACObjects | ( | ) |
get all RBAC object types
public
Definition at line 469 of file class.ilObjectDefinition.php.
References isRBACObject().
ilObjectDefinition::getAllRepositoryTypes | ( | $a_incl_adm = false | ) |
get all RBAC object types
public
Definition at line 1043 of file class.ilObjectDefinition.php.
References isAdministrationObject(), and isAllowedInRepository().
ilObjectDefinition::getClassName | ( | $a_obj_name | ) |
get class name by type
string | object type public |
Definition at line 302 of file class.ilObjectDefinition.php.
|
static |
Get component for object type.
Definition at line 937 of file class.ilObjectDefinition.php.
References $ilDB.
ilObjectDefinition::getCreatableSubObjects | ( | $a_obj_type, | |
$a_context = self::MODE_REPOSITORY |
|||
) |
get only creatable subobjects by type
string | object type |
integer | context public |
Definition at line 716 of file class.ilObjectDefinition.php.
References $sub_types, getDevMode(), getSubObjects(), isAdministrationObject(), isAllowedInRepository(), isAllowedInWorkspace(), and isSystemObject().
ilObjectDefinition::getDevMode | ( | $a_obj_name | ) |
get devmode status by type
string | object type public |
Definition at line 402 of file class.ilObjectDefinition.php.
Referenced by getCreatableSubObjects(), getDevModeAll(), and getSubObjectsRecursively().
ilObjectDefinition::getDevModeAll | ( | ) |
get all object types in devmode
public
Definition at line 413 of file class.ilObjectDefinition.php.
References getDevMode().
ilObjectDefinition::getGroup | ( | $a_id | ) |
Get Group information.
Definition at line 322 of file class.ilObjectDefinition.php.
|
static |
Get grouped repository object types.
Definition at line 955 of file class.ilObjectDefinition.php.
References $ilDB, $ret, DB_FETCHMODE_ASSOC, ilCachedComponentData\getInstance(), IL_COMP_SERVICE, ilPlugin\lookupIdForName(), and ilUtil\sortArray().
ilObjectDefinition::getGroupOfObj | ( | $a_obj_name | ) |
Get Group of object type.
Definition at line 330 of file class.ilObjectDefinition.php.
ilObjectDefinition::getLocation | ( | $a_obj_name | ) |
get location by type
string | object type public |
Definition at line 314 of file class.ilObjectDefinition.php.
ilObjectDefinition::getPlugins | ( | ) |
Get plugin object info.
Definition at line 1147 of file class.ilObjectDefinition.php.
References isPlugin().
ilObjectDefinition::getPositionByType | ( | $a_type | ) |
Get Position By Object Type.
$a_type |
Definition at line 1134 of file class.ilObjectDefinition.php.
References $ilSetting.
|
static |
Get all repository object types of component.
Definition at line 914 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) public |
Definition at line 547 of file class.ilObjectDefinition.php.
References $ilSetting, __filterObjects(), 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 760 of file class.ilObjectDefinition.php.
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 598 of file class.ilObjectDefinition.php.
References $ilSetting, getDevMode(), getSubObjects(), isRBACObject(), and ilUtil\sortArray().
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 public |
Definition at line 687 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 352 of file class.ilObjectDefinition.php.
References $ilDB, and DB_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 814 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 838 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 849 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 341 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 527 of file class.ilObjectDefinition.php.
ilObjectDefinition::ilObjectDefinition | ( | ) |
Constructor.
setup ILIAS global object public
Definition at line 50 of file class.ilObjectDefinition.php.
References readDefinitionData().
ilObjectDefinition::isAdministrationObject | ( | $a_obj_name | ) |
Check if administration object.
string | $a_obj_name |
Definition at line 1077 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 1032 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 1067 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 782 of file class.ilObjectDefinition.php.
ilObjectDefinition::isInactivePlugin | ( | $a_type | ) |
Check whether type belongs to inactive plugin.
@return |
Definition at line 1088 of file class.ilObjectDefinition.php.
References isPlugin().
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 447 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 458 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 435 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 906 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 895 of file class.ilObjectDefinition.php.
Referenced by getCreatableSubObjects().
ilObjectDefinition::readDefinitionData | ( | ) |
Read object definition data.
Definition at line 284 of file class.ilObjectDefinition.php.
References ilGlobalCache\COMP_COMPONENT, ilGlobalCache\getInstance(), readDefinitionDataFromCache(), and readDefinitionDataFromDB().
Referenced by ilObjectDefinition().
|
protected |
Definition at line 78 of file class.ilObjectDefinition.php.
References ilPlugin\_getDirectory(), ilCachedComponentData\getInstance(), IL_COMP_SERVICE, and ilPlugin\lookupIdForName().
Referenced by readDefinitionData().
|
protected |
Definition at line 172 of file class.ilObjectDefinition.php.
References $ilDB, ilPlugin\_getDirectory(), IL_COMP_SERVICE, and ilPlugin\lookupIdForName().
Referenced by readDefinitionData().
ilObjectDefinition::setHandlers | ( | $a_xml_parser | ) |
set event handler
ressouce | internal xml_parser_handler private |
Definition at line 799 of file class.ilObjectDefinition.php.
ilObjectDefinition::stopInheritance | ( | $a_obj_name | ) |
Does object permits stopping inheritance?
string | object type public |
Definition at line 391 of file class.ilObjectDefinition.php.
ilObjectDefinition::$obj_data |
Definition at line 36 of file class.ilObjectDefinition.php.
ilObjectDefinition::$obj_id |
Definition at line 22 of file class.ilObjectDefinition.php.
ilObjectDefinition::$parent |
Definition at line 29 of file class.ilObjectDefinition.php.
ilObjectDefinition::$sub_types = array() |
Definition at line 38 of file class.ilObjectDefinition.php.
Referenced by getAdvancedMetaDataTypes(), and getCreatableSubObjects().
const ilObjectDefinition::MODE_ADMINISTRATION = 3 |
Definition at line 42 of file class.ilObjectDefinition.php.
Referenced by ilObjOrgUnitGUI\showPossibleSubObjects().
const ilObjectDefinition::MODE_REPOSITORY = 1 |
Definition at line 40 of file class.ilObjectDefinition.php.
Referenced by ilObjectAddNewItemGUI\__construct(), and ilTrQuery\getObjectTypeStatistics().
const ilObjectDefinition::MODE_WORKSPACE = 2 |
Definition at line 41 of file class.ilObjectDefinition.php.
Referenced by ilObjectAddNewItemGUI\getHTML(), ilObjectAddNewItemGUI\parsePersonalWorkspace(), ilObjWorkspaceFolderGUI\render(), and ilObjectAddNewItemGUI\render().