ILIAS
Release_4_4_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. | |
Public Member Functions inherited from ilSaxParser | |
ilSaxParser ($a_xml_file= '', $throwException=false) | |
Constructor setup ILIAS global object public. | |
setXMLContent ($a_xml_content) | |
getXMLContent () | |
getInputType () | |
startParsing () | |
stores xml data in array | |
createParser () | |
create parser | |
setOptions ($a_xml_parser) | |
set parser options | |
openXMLFile () | |
open xml file | |
parse ($a_xml_parser, $a_fp=null) | |
parse xml file | |
freeParser ($a_xml_parser) | |
free xml parser handle | |
setThrowException ($throwException) | |
set error handling | |
Public Member Functions inherited from PEAR | |
PEAR ($error_class=null) | |
Constructor. | |
_PEAR () | |
Destructor (the emulated type of...). | |
& | getStaticProperty ($class, $var) |
If you have a class that's mostly/entirely static, and you need static properties, you can use this method to simulate them. | |
registerShutdownFunc ($func, $args=array()) | |
Use this function to register a shutdown method for static classes. | |
isError ($data, $code=null) | |
Tell whether a value is a PEAR error. | |
setErrorHandling ($mode=null, $options=null) | |
Sets how errors generated by this object should be handled. | |
expectError ($code= '*') | |
This method is used to tell which errors you expect to get. | |
popExpect () | |
This method pops one element off the expected error codes stack. | |
_checkDelExpect ($error_code) | |
This method checks unsets an error code if available. | |
delExpect ($error_code) | |
This method deletes all occurences of the specified element from the expected error codes stack. | |
& | raiseError ($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false) |
This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied. | |
& | throwError ($message=null, $code=null, $userinfo=null) |
Simpler form of raiseError with fewer options. | |
staticPushErrorHandling ($mode, $options=null) | |
staticPopErrorHandling () | |
pushErrorHandling ($mode, $options=null) | |
Push a new error handler on top of the error handler options stack. | |
popErrorHandling () | |
Pop the last error handler used. | |
loadExtension ($ext) | |
OS independant PHP extension load. |
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 |
Data Fields inherited from ilSaxParser | |
$input_type = null | |
$xml_content = '' | |
$ilias | |
$lng | |
$xml_file | |
$throwException = false | |
Data Fields inherited from PEAR | |
$_debug = false | |
$_default_error_mode = null | |
$_default_error_options = null | |
$_default_error_handler = '' | |
$_error_class = 'PEAR_Error' | |
$_expected_errors = array() |
Additional Inherited Members | |
Protected Member Functions inherited from ilSaxParser | |
handleError ($message, $code) | |
use given error handler to handle error message or internal ilias error message handle |
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 756 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 419 of file class.ilObjectDefinition.php.
ilObjectDefinition::allowExport | ( | $a_obj_name | ) |
Definition at line 424 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 408 of file class.ilObjectDefinition.php.
ilObjectDefinition::getAdvancedMetaDataTypes | ( | ) |
Get advanced meta data objects.
@return |
Definition at line 997 of file class.ilObjectDefinition.php.
References $sub_types, and $t.
ilObjectDefinition::getAllObjects | ( | ) |
get all object types
public
Definition at line 397 of file class.ilObjectDefinition.php.
ilObjectDefinition::getAllRBACObjects | ( | ) |
get all RBAC object types
public
Definition at line 376 of file class.ilObjectDefinition.php.
References isRBACObject().
ilObjectDefinition::getAllRepositoryTypes | ( | $a_incl_adm = false | ) |
get all RBAC object types
public
Definition at line 937 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 209 of file class.ilObjectDefinition.php.
|
static |
Get component for object type.
Definition at line 837 of file class.ilObjectDefinition.php.
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 616 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 309 of file class.ilObjectDefinition.php.
Referenced by getCreatableSubObjects(), getDevModeAll(), and getSubObjectsRecursively().
ilObjectDefinition::getDevModeAll | ( | ) |
get all object types in devmode
public
Definition at line 320 of file class.ilObjectDefinition.php.
References getDevMode().
ilObjectDefinition::getGroup | ( | $a_id | ) |
Get Group information.
Definition at line 229 of file class.ilObjectDefinition.php.
|
static |
Get grouped repository object types.
Definition at line 855 of file class.ilObjectDefinition.php.
References $ret, DB_FETCHMODE_ASSOC, IL_COMP_SERVICE, ilPlugin\lookupIdForName(), and ilUtil\sortArray().
ilObjectDefinition::getGroupOfObj | ( | $a_obj_name | ) |
Get Group of object type.
Definition at line 237 of file class.ilObjectDefinition.php.
ilObjectDefinition::getLocation | ( | $a_obj_name | ) |
get location by type
string | object type public |
Definition at line 221 of file class.ilObjectDefinition.php.
|
static |
Get all repository object types of component.
Definition at line 814 of file class.ilObjectDefinition.php.
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 447 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 660 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 498 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 587 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 259 of file class.ilObjectDefinition.php.
References 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 714 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 738 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 749 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 248 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 434 of file class.ilObjectDefinition.php.
ilObjectDefinition::ilObjectDefinition | ( | ) |
Constructor.
setup ILIAS global object public
Definition at line 50 of file class.ilObjectDefinition.php.
References ilSaxParser\$ilias, ILIAS_ABSOLUTE_PATH, ilSaxParser\ilSaxParser(), and readDefinitionData().
ilObjectDefinition::isAdministrationObject | ( | $a_obj_name | ) |
Check if administration object.
string | $a_obj_name |
Definition at line 971 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 926 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 961 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 682 of file class.ilObjectDefinition.php.
ilObjectDefinition::isInactivePlugin | ( | $a_type | ) |
Check whether type belongs to inactive plugin.
@return |
Definition at line 982 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 354 of file class.ilObjectDefinition.php.
Referenced by 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 365 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 342 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 806 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 795 of file class.ilObjectDefinition.php.
Referenced by getCreatableSubObjects().
ilObjectDefinition::readDefinitionData | ( | ) |
Read object definition data.
Definition at line 82 of file class.ilObjectDefinition.php.
References ilPlugin\_getDirectory(), IL_COMP_SERVICE, and ilPlugin\lookupIdForName().
Referenced by ilObjectDefinition().
ilObjectDefinition::setHandlers | ( | $a_xml_parser | ) |
set event handler
ressouce | internal xml_parser_handler private |
Reimplemented from ilSaxParser.
Definition at line 699 of file class.ilObjectDefinition.php.
ilObjectDefinition::stopInheritance | ( | $a_obj_name | ) |
Does object permits stopping inheritance?
string | object type public |
Definition at line 298 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().