ILIAS
release_8 Revision v8.23
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (int $a_id=0, bool $a_call_by_reference=true) | |
create () | |
update () | |
getOrgUnitTypeId () | |
getOrgUnitType () | |
setOrgUnitTypeId (int $a_id) | |
assignUsersToEmployeeRole (array $user_ids) | |
Adds the user ids to the position employee. More... | |
assignUsersToSuperiorRole (array $user_ids) | |
Adds the user ids to the position superior. More... | |
deassignUserFromEmployeeRole (int $user_id) | |
deassignUserFromSuperiorRole (int $user_id) | |
assignUserToLocalRole (int $role_id, int $user_id) | |
Assign a given user to a given local role. More... | |
deassignUserFromLocalRole (int $role_id, int $user_id) | |
Deassign a given user to a given local role. More... | |
getTitle () | |
getLongDescription () | |
get object long description (stored in object_description) More... | |
getTranslations () | |
delete () | |
delete orgunit, childs and all related data More... | |
removeTranslations () | |
remove all Translations of current OrgUnit More... | |
deleteTranslation (string $a_lang) | |
remove translations of current OrgUnit More... | |
addTranslation (string $a_title, string $a_desc, string $a_lang, string $a_lang_default) | |
add a new translation to current OrgUnit More... | |
updateTranslation (string $title, string $desc, string $lang, string $lang_default) | |
update a translation to current OrgUnit More... | |
writePath () | |
![]() | |
getTileSizes () | |
getObjectTranslation () | |
setObjectTranslation (?ilObjectTranslation $obj_trans) | |
createContainerDirectory () | |
getContainerDirectory () | |
setHiddenFilesFound (bool $a_hiddenfilesfound) | |
getHiddenFilesFound () | |
getStyleSheetId () | |
setStyleSheetId (int $a_style_id) | |
setNewsTimeline (bool $a_val) | |
getNewsTimeline () | |
setNewsTimelineAutoEntries (bool $a_val) | |
getNewsTimelineAutoEntries () | |
setNewsTimelineLandingPage (bool $a_val) | |
getNewsTimelineLandingPage () | |
isNewsTimelineEffective () | |
isNewsTimelineLandingPageEffective () | |
setNewsBlockActivated (bool $a_val) | |
getNewsBlockActivated () | |
setUseNews (bool $a_val) | |
getUseNews () | |
cloneDependencies (int $target_id, int $copy_id) | |
Clone object dependencies (container sorting) More... | |
cloneAllObject (string $session_id, string $client_id, string $new_type, int $ref_id, int $clone_source, array $options, bool $soap_call=false, int $a_submode=1) | |
delete () | |
delete category and all related data More... | |
getViewMode () | |
getOrderType () | |
setOrderType (int $a_value) | |
isClassificationFilterActive () | |
filteredSubtree () | |
Note grp/crs currently allow to filter in their whole subtrees Catetories only their direct childs. More... | |
getSubItems (bool $a_admin_panel_enabled=false, bool $a_include_side_block=false, int $a_get_single=0, ilContainerUserFilter $container_user_filter=null) | |
gotItems () | |
addAdditionalSubItemInformation (array &$object) | |
Add additional information to sub item, e.g. More... | |
getGroupedObjTypes () | |
enablePageEditing () | |
create () | |
putInTree (int $parent_ref_id) | |
update () | |
read () | |
readContainerSettings () | |
removeTranslations () | |
deleteTranslation (string $a_lang) | |
addTranslation (string $a_title, string $a_desc, string $a_lang, string $a_lang_default) | |
![]() | |
__construct (int $id=0, bool $reference=true) | |
withReferences () | |
determines whether objects are referenced or not (got ref ids or not) More... | |
processAutoRating () | |
read () | |
getId () | |
setId (int $id) | |
setRefId (int $ref_id) | |
getRefId () | |
getType () | |
setType (string $type) | |
getPresentationTitle () | |
get presentation title Normally same as title Overwritten for sessions More... | |
getTitle () | |
getUntranslatedTitle () | |
Get untranslated object title WebDAV needs to access the untranslated title of an object. More... | |
setTitle (string $title) | |
getDescription () | |
setDescription (string $desc) | |
getLongDescription () | |
get object long description (stored in object_description) More... | |
getImportId () | |
setImportId (string $import_id) | |
setOfflineStatus (bool $status) | |
getOfflineStatus () | |
supportsOfflineHandling () | |
getOwner () | |
getOwnerName () | |
get full name of object owner More... | |
setOwner (int $usr_id) | |
getCreateDate () | |
Get create date in YYYY-MM-DD HH-MM-SS format. More... | |
getLastUpdateDate () | |
Get last update date in YYYY-MM-DD HH-MM-SS format. More... | |
create () | |
note: title, description and type should be set when this function is called More... | |
update () | |
MDUpdateListener (string $element) | |
Metadata update listener. More... | |
createMetaData () | |
updateMetaData () | |
deleteMetaData () | |
updateOwner () | |
update owner of object in db More... | |
putInTree (int $parent_ref_id) | |
maybe this method should be in tree object!? More... | |
setPermissions (int $parent_ref_id) | |
setParentRolePermissions (int $parent_ref_id) | |
Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g. More... | |
createReference () | |
creates reference for object More... | |
countReferences () | |
delete () | |
delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More... | |
initDefaultRoles () | |
init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type. More... | |
applyDidacticTemplate (int $tpl_id) | |
getXMLZip () | |
getHTMLDirectory () | |
appendCopyInfo (int $target_id, int $copy_id) | |
Prepend Copy info if object with same name exists in that container. More... | |
cloneDependencies (int $target_id, int $copy_id) | |
Clone object dependencies. More... | |
cloneMetaData (ilObject $target_obj) | |
Copy meta data. More... | |
selfOrParentWithRatingEnabled () | |
getPossibleSubObjects (bool $filter=true) | |
get all possible sub objects of this type the object can decide which types of sub objects are possible jut in time overwrite if the decision distinguish from standard model More... | |
Static Public Member Functions | |
static | getIconsCache () |
Returns an array that maps from OrgUnit object IDs to its icon defined by the assigned OrgUnit type. More... | |
static | getRootOrgRefId () |
static | getRootOrgId () |
static | _exists (int $id, bool $isReference=false, ?string $type="orgu") |
![]() | |
static | _getContainerDirectory (int $a_id) |
static | _lookupContainerSetting (int $a_id, string $a_keyword, string $a_default_value=null) |
static | _hasContainerSetting (int $a_id, string $a_keyword) |
static | _writeContainerSetting (int $a_id, string $a_keyword, string $a_value) |
static | _getContainerSettings (int $a_id) |
static | _deleteContainerSettings (int $a_id, string $a_keyword="", bool $a_keyword_like=false) |
static | _exportContainerSettings (ilXmlWriter $a_xml, int $a_obj_id) |
static | getCompleteDescriptions (array $objects) |
overwrites description fields to long or short description in an assoc array keys needed (obj_id and description) More... | |
![]() | |
static | _lookupObjIdByImportId (string $import_id) |
Get (latest) object id for an import id. More... | |
static | _lookupImportId (int $obj_id) |
static | _lookupOwnerName (int $owner_id) |
Lookup owner name for owner id. More... | |
static | _getIdForImportId (string $import_id) |
static | _getAllReferences (int $id) |
get all reference ids for object ID More... | |
static | _lookupTitle (int $obj_id) |
static | lookupOfflineStatus (int $obj_id) |
Lookup offline status using objectDataCache. More... | |
static | _lookupOwner (int $obj_id) |
Lookup owner user ID for object ID. More... | |
static | _getIdsForTitle (string $title, string $type='', bool $partial_match=false) |
static | _lookupDescription (int $obj_id) |
static | _lookupLastUpdate (int $obj_id, bool $formatted=false) |
static | _getLastUpdateOfObjects (array $obj_ids) |
static | _lookupObjId (int $ref_id) |
static | _setDeletedDate (int $ref_id, int $deleted_by) |
static | setDeletedDates (array $ref_ids, int $user_id) |
static | _resetDeletedDate (int $ref_id) |
static | _lookupDeletedDate (int $ref_id) |
static | _writeTitle (int $obj_id, string $title) |
write title to db (static) More... | |
static | _writeDescription (int $obj_id, string $desc) |
write description to db (static) More... | |
static | _writeImportId (int $obj_id, string $import_id) |
write import id to db (static) More... | |
static | _lookupType (int $id, bool $reference=false) |
static | _isInTrash (int $ref_id) |
static | _hasUntrashedReference (int $obj_id) |
checks whether an object has at least one reference that is not in trash More... | |
static | _lookupObjectId (int $ref_id) |
static | _getObjectsDataForType (string $type, bool $omit_trash=false) |
get all objects of a certain type More... | |
static | _exists (int $id, bool $reference=false, ?string $type=null) |
checks if an object exists in object_data More... | |
static | _getObjectsByType (string $obj_type="", int $owner=null) |
static | _prepareCloneSelection (array $ref_ids, string $new_type, bool $show_path=true) |
Prepare copy wizard object selection. More... | |
static | _getIcon (int $obj_id=0, string $size="big", string $type="", bool $offline=false) |
Get icon for repository item. More... | |
static | collectDeletionDependencies (array &$deps, int $ref_id, int $obj_id, string $type, int $depth=0) |
Collect deletion dependencies. More... | |
static | getDeletionDependencies (int $obj_id) |
Get deletion dependencies. More... | |
static | getLongDescriptions (array $obj_ids) |
static | getAllOwnedRepositoryObjects (int $user_id) |
static | fixMissingTitles ($type, array &$obj_title_map) |
Try to fix missing object titles. More... | |
static | _lookupCreationDate (int $obj_id) |
static | _getObjectTypeIdByTitle (string $type, \ilDBInterface $ilDB=null) |
Data Fields | |
const | TABLE_NAME = 'orgu_data' |
![]() | |
const | VIEW_SESSIONS = 0 |
const | VIEW_OBJECTIVE = 1 |
const | VIEW_TIMING = 2 |
const | VIEW_ARCHIVE = 3 |
const | VIEW_SIMPLE = 4 |
const | VIEW_BY_TYPE = 5 |
const | VIEW_INHERIT = 6 |
const | VIEW_DEFAULT = self::VIEW_BY_TYPE |
const | SORT_TITLE = 0 |
const | SORT_MANUAL = 1 |
const | SORT_ACTIVATION = 2 |
const | SORT_INHERIT = 3 |
const | SORT_CREATION = 4 |
const | SORT_DIRECTION_ASC = 0 |
const | SORT_DIRECTION_DESC = 1 |
const | SORT_NEW_ITEMS_POSITION_TOP = 0 |
const | SORT_NEW_ITEMS_POSITION_BOTTOM = 1 |
const | SORT_NEW_ITEMS_ORDER_TITLE = 0 |
const | SORT_NEW_ITEMS_ORDER_CREATION = 1 |
const | SORT_NEW_ITEMS_ORDER_ACTIVATION = 2 |
const | TILE_NORMAL = 0 |
const | TILE_SMALL = 1 |
const | TILE_LARGE = 2 |
const | TILE_EXTRA_LARGE = 3 |
const | TILE_FULL = 4 |
array | $items = [] |
![]() | |
const | TITLE_LENGTH = 255 |
const | DESC_LENGTH = 128 |
const | LONG_DESC_LENGTH = 4000 |
const | TABLE_OBJECT_DATA = "object_data" |
array | $objectList |
string | $untranslatedTitle |
Static Protected Attributes | |
static int | $root_ref_id = 0 |
static int | $root_id = 0 |
static array | $icons_cache = null |
Cache storing OrgUnit objects that have OrgUnit types with custom icons assigned. More... | |
Static Private Member Functions | |
static | loadRootOrgRefIdAndId () |
Private Attributes | |
ilDBInterface | $ilDb |
ilAppEventHandler | $ilAppEventHandler |
ilRbacReview | $rbacreview |
ilRbacAdmin | $rbacadmin |
Additional Inherited Members | |
![]() | |
static bool | $data_preloaded = false |
![]() | |
getInitialSubitems () | |
applyContainerUserFilter (array $objects, ilContainerUserFilter $container_user_filter=null) | |
Apply container user filter on objects. More... | |
filterObjIdsByCopyright (array $obj_ids, string $copyright_id) | |
filterObjIdsByDefaultCopyright (array $obj_ids, string $default_identifier) | |
legacyOnlineFilter (array $obj_ids, array $objects, int $val) | |
Legacy online filter. More... | |
![]() | |
doMDUpdateListener (string $a_element) | |
beforeMDUpdateListener (string $a_element) | |
doCreateMetaData () | |
beforeCreateMetaData () | |
doUpdateMetaData () | |
beforeUpdateMetaData () | |
doDeleteMetaData () | |
beforeDeleteMetaData () | |
handleAutoRating () | |
hasAutoRating () | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilObjOrgUnit Based on methods of ilObjCategoryGUI
Definition at line 27 of file class.ilObjOrgUnit.php.
ilObjOrgUnit::__construct | ( | int | $a_id = 0 , |
bool | $a_call_by_reference = true |
||
) |
Definition at line 50 of file class.ilObjOrgUnit.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ilObject\getId(), ilContainer\read(), and setOrgUnitTypeId().
|
static |
Definition at line 340 of file class.ilObjOrgUnit.php.
Referenced by ilOrgUnitImporter\buildRef().
ilObjOrgUnit::addTranslation | ( | string | $a_title, |
string | $a_desc, | ||
string | $a_lang, | ||
string | $a_lang_default | ||
) |
add a new translation to current OrgUnit
Definition at line 469 of file class.ilObjOrgUnit.php.
References $query, and ilObject\getId().
Referenced by getTranslations().
ilObjOrgUnit::assignUsersToEmployeeRole | ( | array | $user_ids | ) |
Adds the user ids to the position employee.
int[] | $user_ids |
Definition at line 228 of file class.ilObjOrgUnit.php.
References ilOrgUnitPosition\CORE_POSITION_EMPLOYEE, ilOrgUnitUserAssignment\findOrCreateAssignment(), ilOrgUnitPosition\getCorePositionId(), ilObject\getId(), ilObject\getRefId(), and ilAppEventHandler\raise().
ilObjOrgUnit::assignUsersToSuperiorRole | ( | array | $user_ids | ) |
Adds the user ids to the position superior.
int[] | $user_ids |
Definition at line 249 of file class.ilObjOrgUnit.php.
References ilOrgUnitPosition\CORE_POSITION_SUPERIOR, ilOrgUnitUserAssignment\findOrCreateAssignment(), ilOrgUnitPosition\getCorePositionId(), ilObject\getId(), ilObject\getRefId(), and ilAppEventHandler\raise().
ilObjOrgUnit::assignUserToLocalRole | ( | int | $role_id, |
int | $user_id | ||
) |
Assign a given user to a given local role.
Definition at line 297 of file class.ilObjOrgUnit.php.
References ilObject\getId(), ilObject\getRefId(), and ilAppEventHandler\raise().
ilObjOrgUnit::create | ( | ) |
Definition at line 75 of file class.ilObjOrgUnit.php.
References ilObject\$id, ilObject\getId(), and getOrgUnitTypeId().
ilObjOrgUnit::deassignUserFromEmployeeRole | ( | int | $user_id | ) |
Definition at line 266 of file class.ilObjOrgUnit.php.
References ilOrgUnitPosition\CORE_POSITION_EMPLOYEE, ilOrgUnitUserAssignment\findOrCreateAssignment(), ilOrgUnitPosition\getCorePositionId(), ilObject\getId(), ilObject\getRefId(), and ilAppEventHandler\raise().
ilObjOrgUnit::deassignUserFromLocalRole | ( | int | $role_id, |
int | $user_id | ||
) |
Deassign a given user to a given local role.
Definition at line 320 of file class.ilObjOrgUnit.php.
References ilObject\getId(), ilObject\getRefId(), and ilAppEventHandler\raise().
ilObjOrgUnit::deassignUserFromSuperiorRole | ( | int | $user_id | ) |
Definition at line 280 of file class.ilObjOrgUnit.php.
References ilOrgUnitPosition\CORE_POSITION_SUPERIOR, ilOrgUnitUserAssignment\findOrCreateAssignment(), ilOrgUnitPosition\getCorePositionId(), ilObject\getId(), ilObject\getRefId(), and ilAppEventHandler\raise().
ilObjOrgUnit::delete | ( | ) |
delete orgunit, childs and all related data
Definition at line 406 of file class.ilObjOrgUnit.php.
References $path, $query, ilObjUserFolder\_updateUserFolderAssignment(), ilObject\getId(), ilObject\getRefId(), ilAppEventHandler\raise(), USER_FOLDER_ID, and ActiveRecord\where().
ilObjOrgUnit::deleteTranslation | ( | string | $a_lang | ) |
remove translations of current OrgUnit
$a_lang | string en|de|... |
Definition at line 456 of file class.ilObjOrgUnit.php.
References $query, and ilObject\getId().
|
static |
Returns an array that maps from OrgUnit object IDs to its icon defined by the assigned OrgUnit type.
Keys = OrgUnit object IDs, values = Path to the icon This allows to get the Icons of OrgUnits without loading the object (e.g. used in the tree explorer)
Definition at line 172 of file class.ilObjOrgUnit.php.
References $DIC, $icons_cache, ilObject\$type, ilDBInterface\fetchObject(), ilOrgUnitType\getInstance(), and ilDBInterface\query().
Referenced by ilOrgUnitExplorerGUI\getNodeIcon(), ilObjOrgUnitListGUI\getTypeIcon(), and ilObjOrgUnitGUI\setTitleAndDescription().
ilObjOrgUnit::getLongDescription | ( | ) |
get object long description (stored in object_description)
Definition at line 357 of file class.ilObjOrgUnit.php.
References ILIAS\Repository\lng().
ilObjOrgUnit::getOrgUnitType | ( | ) |
Definition at line 125 of file class.ilObjOrgUnit.php.
References ilOrgUnitType\getInstance(), and getOrgUnitTypeId().
Referenced by update().
ilObjOrgUnit::getOrgUnitTypeId | ( | ) |
Definition at line 120 of file class.ilObjOrgUnit.php.
References $orgu_type_id.
Referenced by create(), getOrgUnitType(), setOrgUnitTypeId(), and update().
|
static |
Definition at line 202 of file class.ilObjOrgUnit.php.
Referenced by ilOrgUnitExporter\sendAndCreateSimpleExportFile().
|
static |
Definition at line 195 of file class.ilObjOrgUnit.php.
Referenced by ilOrgUnitExportGUI\__construct(), ilOrgUnitSimpleImportGUI\__construct(), ilObjOrgUnitGUI\addAdminLocatorItems(), ILIAS\OrgUnit\Webservices\SOAP\Base\execute(), ilObjOrgUnitTree\getAllOrgunitsOnLevelX(), ilOrgUnitExporter\getAttributesForOrgu(), ilObjStudyProgrammeAutoMembershipsGUI\getForm(), ilObjOrgUnitTree\getLevelXOfTreenode(), ilOrgUnitExtension\getOrgUnitPath(), ilOrgUnitExplorerGUI\getRootNode(), ILIAS\EmployeeTalk\Provider\MyStaffListEntryProvider\getStaticSubItems(), ILIAS\OrgUnit\Provider\OrgUnitMainBarProvider\getStaticSubItems(), ilObjOrgUnitGUI\getTabs(), ilOrgUnitPathStorage\getTextRepresentationOfOrgUnits(), ILIAS\OrgUnit\Provider\OrgUnitToolProvider\getTree(), ILIAS\OrgUnit\Provider\OrgUnitToolProvider\getTreeRecursion(), ilRepositorySearchGUI\initFormSearch(), ilOrgUnitExportGUI\listExportFiles(), ilOrgUnitRecursiveUserAssignmentTableGUI\loadData(), ilOrgUnitRecursiveUserAssignmentTableGUI\mayViewLPIn(), ilOrgUnitExporter\sendAndCreateSimpleExportFile(), ilObjOrgUnitGUI\setContentSubTabs(), ilOrgUnitExtensionGUI\setLocator(), ilOrgUnitExporter\simpleExport(), ilOrgUnitExporter\simpleExportExcel(), ilOrgUnitExportGUI\simpleExportExcel(), and ilOrgUnitSimpleImport\simpleImportElement().
ilObjOrgUnit::getTitle | ( | ) |
Definition at line 345 of file class.ilObjOrgUnit.php.
References ILIAS\Repository\lng().
Referenced by getTranslations().
ilObjOrgUnit::getTranslations | ( | ) |
Definition at line 369 of file class.ilObjOrgUnit.php.
References $data, addTranslation(), ilDBConstants\FETCHMODE_OBJECT, ilObject\getId(), getTitle(), and ILIAS\Repository\lng().
|
staticprivate |
Definition at line 209 of file class.ilObjOrgUnit.php.
References $DIC, $res, ilDBInterface\fetchAssoc(), ILIAS\Repository\int(), ilDBInterface\query(), and ilDBInterface\quote().
ilObjOrgUnit::removeTranslations | ( | ) |
remove all Translations of current OrgUnit
Definition at line 446 of file class.ilObjOrgUnit.php.
References $query, $res, and ilObject\getId().
ilObjOrgUnit::setOrgUnitTypeId | ( | int | $a_id | ) |
Definition at line 130 of file class.ilObjOrgUnit.php.
References $amd_data, ilObject\getId(), ilAdvancedMDValues\getInstancesForObjectId(), and getOrgUnitTypeId().
Referenced by __construct().
ilObjOrgUnit::update | ( | ) |
Definition at line 85 of file class.ilObjOrgUnit.php.
References ilObject\getId(), getOrgUnitType(), getOrgUnitTypeId(), and ilAdvancedMDRecord\saveObjRecSelection().
ilObjOrgUnit::updateTranslation | ( | string | $title, |
string | $desc, | ||
string | $lang, | ||
string | $lang_default | ||
) |
update a translation to current OrgUnit
Definition at line 487 of file class.ilObjOrgUnit.php.
References $query, and ilObject\getId().
ilObjOrgUnit::writePath | ( | ) |
Definition at line 510 of file class.ilObjOrgUnit.php.
References ilObject\getId(), and ilObject\getRefId().
|
protected |
Advanced Metadata Values for this OrgUnit.
Definition at line 48 of file class.ilObjOrgUnit.php.
Referenced by setOrgUnitTypeId().
|
staticprotected |
Cache storing OrgUnit objects that have OrgUnit types with custom icons assigned.
Definition at line 40 of file class.ilObjOrgUnit.php.
Referenced by getIconsCache().
|
private |
Definition at line 33 of file class.ilObjOrgUnit.php.
|
private |
Definition at line 32 of file class.ilObjOrgUnit.php.
|
protected |
ID of assigned OrgUnit type.
Definition at line 44 of file class.ilObjOrgUnit.php.
Referenced by getOrgUnitTypeId().
|
private |
Definition at line 35 of file class.ilObjOrgUnit.php.
|
private |
Definition at line 34 of file class.ilObjOrgUnit.php.
|
staticprotected |
Definition at line 31 of file class.ilObjOrgUnit.php.
|
staticprotected |
Definition at line 30 of file class.ilObjOrgUnit.php.
const ilObjOrgUnit::TABLE_NAME = 'orgu_data' |
Definition at line 29 of file class.ilObjOrgUnit.php.