ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
_checkAccess (string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null) | |
![]() | |
_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) | |
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 | _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 |
||
) |
Definition at line 77 of file class.ilObjDataCollectionAccess.php.
References $DIC, $ilUser, $lng, _lookupOnline(), ilAccessInfo\IL_NO_OBJECT_ACCESS, and ilAccessInfo\IL_STATUS_MESSAGE.
|
static |
check whether goto script will succeed
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"), );
Definition at line 31 of file class.ilObjDataCollectionAccess.php.
Referenced by ilObjDataCollectionListGUI\init().
|
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().
|
static |
$data_collection_id | use checkActionForId instead |
Definition at line 151 of file class.ilObjDataCollectionAccess.php.
References $DIC, and ilObject\_getAllReferences().
|
static |
Definition at line 166 of file class.ilObjDataCollectionAccess.php.
References $DIC, $ref_id, and ilObject\_getAllReferences().
Referenced by ilDclTableEditGUI\save().
|
static |
Definition at line 310 of file class.ilObjDataCollectionAccess.php.
Referenced by ilDclTableViewGUI\checkAccess(), ilDclFieldListGUI\checkAccess(), ilDclTableViewEditGUI\checkAccess(), and ilDclTableEditGUI\checkAccess().
|
static |
Definition at line 315 of file class.ilObjDataCollectionAccess.php.
References ilDclCache\getTableCache().
Referenced by ilDclFieldEditGUI\checkAccess().
|
static |
Definition at line 304 of file class.ilObjDataCollectionAccess.php.
References ilDclCache\getTableCache().
Referenced by ilDclFieldEditGUI\checkAccess(), ilDclRecordListGUI\executeCommand(), and ilDclFieldListTableGUI\fillRowFromObject().
|
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 ilDclCache\getTableCache().
|
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().
|
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().
|
static |
Definition at line 205 of file class.ilObjDataCollectionAccess.php.
References $DIC.
Referenced by ilDclRecordEditGUI\cancelSave(), ilDclTable\getPartialRecords(), ilDclTable\hasPermissionToEditRecord(), and ilDclTable\hasPermissionToViewRecord().
|
static |
Definition at line 322 of file class.ilObjDataCollectionAccess.php.
References ilDclCache\getTableCache(), hasAddRecordAccess(), and hasWriteAccess().
Referenced by ilDclRecordListGUI\executeCommand(), ilDclReferenceFieldRepresentation\getInputField(), ilDclRecordListGUI\importExcel(), and ilDclRecordEditGUI\save().
|
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().
|
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(), ilDclRecordEditGUI\cancelSave(), ilDclTableListGUI\checkAccess(), ilDclTableEditGUI\checkAccess(), ilDclDetailedViewGUI\doExtReplace(), ilObjDataCollection\doUpdate(), ilDclRecordListGUI\getAvailableTables(), ilDclTable\getPartialRecords(), ilDclTable\getVisibleTableViews(), hasPermissionToAddRecord(), ilDclTable\hasPermissionToDeleteRecord(), ilDclTable\hasPermissionToDeleteRecords(), ilDclTable\hasPermissionToEditRecord(), ilDclTable\hasPermissionToViewRecord(), ilDclRecordEditGUI\initForm(), and ilDclRecordEditGUI\save().
|
staticprotected |
Definition at line 64 of file class.ilObjDataCollectionAccess.php.
References ilObject\_getAllReferences(), and ilDclTable\getObjId().