|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilObjDataCollectionAccess:
Collaboration diagram for ilObjDataCollectionAccess:Public Member Functions | |
| _checkAccess (string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null) | |
| Checks whether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More... | |
Public Member Functions inherited from ilObjectAccess | |
| _checkAccess (string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null) | |
| Checks whether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More... | |
| canBeDelivered (ilWACPath $ilWACPath) | |
| canBeDelivered (ilWACPath $ilWACPath) | |
Static Public Member Functions | |
| static | _getCommands () |
| get commands this method returns an array of all possible commands/permission combinations example: $commands = array ( array("permission" => "read", "cmd" => "view", "lang_var" => "show"), array("permission" => "write", "cmd" => "edit", "lang_var" => "edit"), ); More... | |
| static | _checkGoto (string $target) |
| check whether goto script will succeed More... | |
| static | _lookupOnline (int $a_id) |
| Check wether datacollection is online. More... | |
| static | checkAccessForDataCollectionId (int $data_collection_id) |
| static | checkActionForObjId (string $action, int $obj_id) |
| static | hasWriteAccess (int $ref, ?int $user_id=0) |
| static | hasEditAccess (int $ref, ?int $user_id=0) |
| static | hasAddRecordAccess (int $ref, ?int $user_id=0) |
| static | hasReadAccess (int $ref, ?int $user_id=0) |
| static | hasAccessToTableView ($tableview, ?int $user_id=0) |
| This only checks access to the tableview - if the full access check is required, use hasAccessTo($ref_id, $table_id, $tableview_id) More... | |
| static | hasAccessToFields (int $ref_id, int $table_id) |
| static | hasAccessToEditTable (int $ref_id, int $table_id) |
| static | hasAccessToField (int $ref_id, int $table_id, int $field_id) |
| static | hasPermissionToAddRecord (int $ref_id, int $table_id) |
Static Public Member Functions inherited from ilObjectAccess | |
| static | _getCommands () |
| get commands More... | |
| static | _checkGoto (string $target) |
| check whether goto script will succeed More... | |
| static | _isOffline (int $obj_id) |
| Type-specific implementation of general status, has to be overwritten if object type does not support centralized offline handling. More... | |
| static | _preloadData (array $obj_ids, array $ref_ids) |
| Preload data. More... | |
Static Protected Member Functions | |
| static | isTableInDataCollection (ilDclTable $table, int $ref_id) |
| static | hasAccessToTable (int $table_id, int $ref_id) |
| returns true if either the table is visible for all users, or no tables are visible and this is the table with the lowest order (getFirstVisibleTableId()) More... | |
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
Definition at line 19 of file class.ilObjDataCollectionAccess.php.
| ilObjDataCollectionAccess::_checkAccess | ( | string | $cmd, |
| string | $permission, | ||
| int | $ref_id, | ||
| int | $obj_id, | ||
| ?int | $user_id = null |
||
| ) |
Checks whether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess)
Please do not check any preconditions handled by ilConditionHandler here. Also don't do any RBAC checks.
Reimplemented from ilObjectAccess.
Definition at line 77 of file class.ilObjDataCollectionAccess.php.
References $DIC, $ilUser, $lng, $ref_id, _lookupOnline(), ilAccessInfo\IL_NO_OBJECT_ACCESS, and ilAccessInfo\IL_STATUS_MESSAGE.
Here is the call graph for this function:
|
static |
check whether goto script will succeed
Reimplemented from ilObjectAccess.
Definition at line 45 of file class.ilObjDataCollectionAccess.php.
References $DIC.
|
static |
get commands this method returns an array of all possible commands/permission combinations example: $commands = array ( array("permission" => "read", "cmd" => "view", "lang_var" => "show"), array("permission" => "write", "cmd" => "edit", "lang_var" => "edit"), );
Reimplemented from ilObjectAccess.
Definition at line 31 of file class.ilObjDataCollectionAccess.php.
Referenced by ilObjDataCollectionListGUI\init().
Here is the caller graph for this function:
|
static |
Check wether datacollection is online.
| int | $a_id | wiki id |
Definition at line 130 of file class.ilObjDataCollectionAccess.php.
Referenced by _checkAccess(), ilObjDataCollectionListGUI\getProperties(), and ilContainer\legacyOnlineFilter().
Here is the caller graph for this function:
|
static |
| $data_collection_id | @depracated use checkActionForId instead |
Definition at line 151 of file class.ilObjDataCollectionAccess.php.
References $DIC, and ilObject\_getAllReferences().
Here is the call graph for this function:
|
static |
Definition at line 166 of file class.ilObjDataCollectionAccess.php.
References $ref_id, and ilObject\_getAllReferences().
Referenced by ilDclTableEditGUI\save().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 310 of file class.ilObjDataCollectionAccess.php.
References $ref_id, and hasAccessToFields().
Referenced by ilDclFieldListGUI\checkAccess(), ilDclTableEditGUI\checkAccess(), ilDclTableViewGUI\checkAccess(), and ilDclTableViewEditGUI\checkAccess().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 315 of file class.ilObjDataCollectionAccess.php.
References $ref_id, ilDclCache\getTableCache(), and hasAccessToFields().
Referenced by ilDclFieldEditGUI\checkAccess().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 304 of file class.ilObjDataCollectionAccess.php.
References $ref_id, ilDclCache\getTableCache(), hasWriteAccess(), and isTableInDataCollection().
Referenced by ilDclFieldEditGUI\checkAccess(), ilDclFieldListTableGUI\fillRowFromObject(), hasAccessToEditTable(), and hasAccessToField().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
returns true if either the table is visible for all users, or no tables are visible and this is the table with the lowest order (getFirstVisibleTableId())
| $table_id |
Definition at line 278 of file class.ilObjDataCollectionAccess.php.
References $ref_id, ilDclCache\getTableCache(), and hasWriteAccess().
Here is the call graph for this function:
|
static |
This only checks access to the tableview - if the full access check is required, use hasAccessTo($ref_id, $table_id, $tableview_id)
| integer | ilDclTableView | $tableview | can be object or id |
Definition at line 253 of file class.ilObjDataCollectionAccess.php.
Referenced by ilDclTable\getVisibleTableViews().
Here is the caller graph for this function:
|
static |
| $ref | int the reference id of the datacollection object to check. |
Definition at line 221 of file class.ilObjDataCollectionAccess.php.
References $DIC.
Referenced by ilDclRecordEditGUI\getRecord(), hasPermissionToAddRecord(), ilDclTable\hasPermissionToDeleteRecord(), ilDclTable\hasPermissionToDeleteRecords(), and ilDclTable\hasPermissionToEditRecord().
Here is the caller graph for this function:
|
static |
Definition at line 205 of file class.ilObjDataCollectionAccess.php.
References $DIC.
Referenced by ilDclTable\hasPermissionToEditRecord(), and ilDclTable\hasPermissionToViewRecord().
Here is the caller graph for this function:
|
static |
Definition at line 322 of file class.ilObjDataCollectionAccess.php.
References $ref_id, ilDclCache\getTableCache(), hasAddRecordAccess(), and hasWriteAccess().
Referenced by ilDclReferenceFieldRepresentation\getInputField(), ilDclRecordListGUI\importExcel(), and ilDclRecordEditGUI\save().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| $ref | int the reference id of the datacollection object to check. |
Definition at line 237 of file class.ilObjDataCollectionAccess.php.
References $DIC.
Referenced by ilObjDataCollection\_hasReadAccess(), ilSoapDataCollectionAdministration\exportDataCollectionContent(), and ilDclTable\hasPermissionToViewRecord().
Here is the caller graph for this function:
|
static |
| $ref | int the reference id of the datacollection object to check. |
Definition at line 193 of file class.ilObjDataCollectionAccess.php.
References $DIC.
Referenced by ilObjDataCollection\_hasWriteAccess(), ilDclTableEditGUI\checkAccess(), ilDclTableListGUI\checkAccess(), ilDclDetailedViewGUI\doExtReplace(), ilDclRecordListGUI\getAvailableTables(), ilDclTable\getVisibleTableViews(), hasAccessToFields(), hasAccessToTable(), hasPermissionToAddRecord(), ilDclTable\hasPermissionToDeleteRecord(), ilDclTable\hasPermissionToDeleteRecords(), ilDclTable\hasPermissionToEditRecord(), ilDclTable\hasPermissionToViewRecord(), ilDclRecordEditGUI\initForm(), and ilDclRecordEditGUI\save().
Here is the caller graph for this function:
|
staticprotected |
Definition at line 64 of file class.ilObjDataCollectionAccess.php.
References $ref_id, ilObject\_getAllReferences(), and ilDclTable\getObjId().
Referenced by hasAccessToFields().
Here is the call graph for this function:
Here is the caller graph for this function: