ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
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 (ilDclTableView $tableview, ?int $user_id=0) |
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) |
Definition at line 21 of file class.ilObjDataCollectionAccess.php.
ilObjDataCollectionAccess::_checkAccess | ( | string | $cmd, |
string | $permission, | ||
int | $ref_id, | ||
int | $obj_id, | ||
?int | $user_id = null |
||
) |
Definition at line 80 of file class.ilObjDataCollectionAccess.php.
References $DIC, $lng, $user_id, _lookupOnline(), ilAccessInfo\IL_NO_OBJECT_ACCESS, and ilAccessInfo\IL_STATUS_MESSAGE.
|
static |
check whether goto script will succeed
Definition at line 47 of file class.ilObjDataCollectionAccess.php.
References $DIC, $ref_id, and ILIAS\Repository\int().
|
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 33 of file class.ilObjDataCollectionAccess.php.
Referenced by ilObjDataCollectionListGUI\init().
|
static |
Check wether datacollection is online.
int | $a_id | wiki id |
Definition at line 133 of file class.ilObjDataCollectionAccess.php.
References $DIC, $ilDB, and $q.
Referenced by _checkAccess(), ilObjDataCollectionListGUI\getProperties(), and ILIAS\UI\Component\Legacy\Content\Filter\FilterManager\legacyOnlineFilter().
|
static |
$data_collection_id | use checkActionForId instead |
Definition at line 154 of file class.ilObjDataCollectionAccess.php.
References $DIC, and ilObject\_getAllReferences().
|
static |
Definition at line 169 of file class.ilObjDataCollectionAccess.php.
References $DIC, $ref_id, and ilObject\_getAllReferences().
Referenced by ilDclTableEditGUI\save().
|
static |
Definition at line 296 of file class.ilObjDataCollectionAccess.php.
Referenced by ilDclTableViewGUI\checkAccess(), ilDclFieldListGUI\checkAccess(), ilDclTableEditGUI\checkAccess(), and ilDclTableViewEditGUI\checkAccess().
|
static |
Definition at line 301 of file class.ilObjDataCollectionAccess.php.
References ilDclCache\getTableCache().
Referenced by ilDclFieldEditGUI\checkAccess().
|
static |
Definition at line 290 of file class.ilObjDataCollectionAccess.php.
References ilDclCache\getTableCache().
Referenced by ilDclFieldEditGUI\checkAccess(), ilDclFieldListTableGUI\fillRowFromObject(), and ilDclRecordListGUI\listRecords().
|
staticprotected |
Definition at line 264 of file class.ilObjDataCollectionAccess.php.
References ilDclCache\getTableCache().
|
static |
Definition at line 252 of file class.ilObjDataCollectionAccess.php.
References $DIC, $user_id, ilDclTableView\getRoleLimitation(), and ilDclTableView\getRoles().
Referenced by ilDclTable\getVisibleTableViews().
|
static |
$ref | int the reference id of the datacollection object to check. |
Definition at line 224 of file class.ilObjDataCollectionAccess.php.
References $DIC, and $user_id.
Referenced by ilDclRecordEditGUI\getRecord(), hasPermissionToAddRecord(), ilDclTable\hasPermissionToDeleteRecord(), ilDclTable\hasPermissionToDeleteRecords(), and ilDclTable\hasPermissionToEditRecord().
|
static |
Definition at line 208 of file class.ilObjDataCollectionAccess.php.
References $DIC, and $user_id.
Referenced by ilDclRecordEditGUI\cancelSave(), ilDclTable\getPartialRecords(), ilDclTable\hasPermissionToEditRecord(), and ilDclTable\hasPermissionToViewRecord().
|
static |
Definition at line 308 of file class.ilObjDataCollectionAccess.php.
References ilDclCache\getTableCache(), hasAddRecordAccess(), and hasWriteAccess().
Referenced by ilDclReferenceFieldRepresentation\getInputField(), ilDclRecordListGUI\importExcel(), ilDclRecordListGUI\listRecords(), and ilDclRecordEditGUI\save().
|
static |
$ref | int the reference id of the datacollection object to check. |
Definition at line 240 of file class.ilObjDataCollectionAccess.php.
References $DIC, and $user_id.
Referenced by ilSoapDataCollectionAdministration\exportDataCollectionContent(), and ilDclTable\hasPermissionToViewRecord().
|
static |
$ref | int the reference id of the datacollection object to check. |
Definition at line 196 of file class.ilObjDataCollectionAccess.php.
References $DIC, and $user_id.
Referenced by ilDclRecordEditGUI\cancelSave(), ilDclTableListGUI\checkAccess(), ilDclTableEditGUI\checkAccess(), ilDclRecordListGUI\createSwitchers(), ilDclDetailedViewGUI\doExtReplace(), ilDclTable\getPartialRecords(), ilDclTable\getVisibleTableViews(), hasPermissionToAddRecord(), ilDclTable\hasPermissionToDeleteRecord(), ilDclTable\hasPermissionToDeleteRecords(), ilDclTable\hasPermissionToEditRecord(), ilDclTable\hasPermissionToViewRecord(), ilDclRecordEditGUI\initForm(), ilDclRecordEditGUI\save(), and ilObjDataCollectionGUI\setTableId().
|
staticprotected |
Definition at line 67 of file class.ilObjDataCollectionAccess.php.
References ilObject\_getAllReferences(), ilDclTable\getObjId(), and null.