ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Class ilObjTestAccess. More...
Public Member Functions | |
canBeDelivered (ilWACPath $ilWACPath) | |
_checkAccess (string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null) | |
Checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More... | |
showCertificateFor (int $user_id, int $obj_id) | |
![]() | |
_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 | getConditionOperators () |
Get possible conditions operators. More... | |
static | _getCommands () |
static | getBypassActivationCheckForPermissions () |
static | _getTestIDFromObjectID (int $object_id) |
Returns the ILIAS test id for a given object id. More... | |
static | _getRandomTestsForQuestionPool (int $qpl_id) |
Get all tests using a question pool for random selection. More... | |
static | _getParticipantData (int $active_id) |
Retrieves a participant name from active id. More... | |
static | _getParticipantId (int $active_id) |
Get user id for active id. More... | |
static | _checkGoto (string $target) |
check whether goto script will succeed More... | |
static | _isOffline (int $obj_id) |
returns the objects's OFFline status More... | |
static | visibleUserResultExists (int $test_obj_id, int $user_id) |
static | _preloadData (array $obj_ids, array $ref_ids) |
![]() | |
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 | checkCondition (int $a_trigger_obj_id, string $a_operator, string $a_value, int $a_usr_id) |
check condition for a specific user and object More... | |
Private Member Functions | |
findMatch (string $path, array $array) | |
Static Private Member Functions | |
static | lookupCreationComplete (int $a_obj_id) |
Private Attributes | |
ilDBInterface | $db |
ilObjUser | $user |
ilLanguage | $lng |
ilRbacSystem | $rbac_system |
ilAccessHandler | $access |
Static Private Attributes | |
static ilCertificateObjectsForUserPreloader | $certificate_preloader = null |
static array | $settings_result_summaries_by_obj_id = [] |
Class ilObjTestAccess.
This class contains methods that check object specific conditions for accessing test objects.
\
Definition at line 45 of file class.ilObjTestAccess.php.
ilObjTestAccess::_checkAccess | ( | string | $cmd, |
string | $permission, | ||
int | $ref_id, | ||
int | $obj_id, | ||
?int | $user_id = null |
||
) |
Checks wether 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.
Definition at line 94 of file class.ilObjTestAccess.php.
References $user_id, ILIAS\Repository\access(), ilAccessInfo\IL_NO_OBJECT_ACCESS, ILIAS\Repository\lng(), lookupCreationComplete(), ilObject\lookupOfflineStatus(), and ILIAS\Repository\user().
|
static |
check whether goto script will succeed
Definition at line 339 of file class.ilObjTestAccess.php.
References $DIC.
|
static |
Definition at line 174 of file class.ilObjTestAccess.php.
References $DIC.
Referenced by ilObjTestListGUI\init().
|
static |
Retrieves a participant name from active id.
integer | $active_id | Active ID of the participant |
Definition at line 272 of file class.ilObjTestAccess.php.
References $DIC, $ilDB, ilObjTest\_lookupAnonymity(), ilObjUser\_lookupName(), ANONYMOUS_USER_ID, null, and ilLanguage\txt().
Referenced by ilTestParticipantList\buildParticipantsFullname(), ilTestResultsToXML\exportActiveIDs(), ilTestParticipantData\getFormatedFullnameByActiveId(), and ilTestParticipantData\getOptionArray().
|
static |
Get user id for active id.
int | active ID of the participant |
Definition at line 322 of file class.ilObjTestAccess.php.
Referenced by ILIAS\Test\Scoring\Manual\TestScoringByQuestionGUI\saveManScoringByQuestion(), ILIAS\Test\Scoring\Manual\TestScoringByParticipantGUI\saveManScoringParticipantScreen(), and ilTestPassFinishTasks\updateLearningProgressAfterPassFinishedIsWritten().
|
static |
Get all tests using a question pool for random selection.
int | question pool id |
Definition at line 242 of file class.ilObjTestAccess.php.
Referenced by ilMobStakeholder\checkAccessTestQuestion(), and ilObjMediaObjectAccess\checkAccessTestQuestion().
|
static |
Returns the ILIAS test id for a given object id.
integer | $object_id | The object id |
Definition at line 218 of file class.ilObjTestAccess.php.
Referenced by ilLPStatusTestFinished\getParticipants(), and ilSoapTestAdministration\getTestAccess().
|
static |
returns the objects's OFFline status
Used in ListGUI and Learning Progress
Definition at line 362 of file class.ilObjTestAccess.php.
References ilObject\lookupOfflineStatus().
Referenced by ilLOEditorStatus\checkTestOnline().
|
static |
Definition at line 386 of file class.ilObjTestAccess.php.
References $DIC, and ILIAS\Survey\Mode\getId().
ilObjTestAccess::canBeDelivered | ( | ilWACPath | $ilWACPath | ) |
Implements ilWACCheckingClass.
Definition at line 67 of file class.ilObjTestAccess.php.
References ILIAS\Repository\access(), findMatch(), ilWACPath\getPath(), and ILIAS\Repository\user().
|
private |
Definition at line 80 of file class.ilObjTestAccess.php.
References ILIAS\Data\Result\except(), and ILIAS\Test\Access\SimpleAccess\isPermitted().
Referenced by canBeDelivered().
|
static |
Definition at line 191 of file class.ilObjTestAccess.php.
|
static |
Get possible conditions operators.
Implements ilConditionHandling.
Definition at line 135 of file class.ilObjTestAccess.php.
References ilConditionHandling\checkCondition(), ilConditionHandler\OPERATOR_FAILED, ilConditionHandler\OPERATOR_FINISHED, ilConditionHandler\OPERATOR_NOT_FINISHED, and ilConditionHandler\OPERATOR_PASSED.
|
staticprivate |
Definition at line 199 of file class.ilObjTestAccess.php.
References $DIC, ilDBInterface\fetchAssoc(), and ilDBInterface\queryF().
Referenced by _checkAccess().
ilObjTestAccess::showCertificateFor | ( | int | $user_id, |
int | $obj_id | ||
) |
Definition at line 397 of file class.ilObjTestAccess.php.
References null.
|
static |
Definition at line 368 of file class.ilObjTestAccess.php.
References $DIC, $ilDB, and ilObjectFactory\getInstanceByObjId().
Referenced by ilLOUtils\getTestResultLinkForUser().
|
private |
Definition at line 51 of file class.ilObjTestAccess.php.
|
staticprivate |
Definition at line 53 of file class.ilObjTestAccess.php.
|
private |
Definition at line 47 of file class.ilObjTestAccess.php.
|
private |
Definition at line 49 of file class.ilObjTestAccess.php.
|
private |
Definition at line 50 of file class.ilObjTestAccess.php.
|
staticprivate |
Definition at line 54 of file class.ilObjTestAccess.php.
|
private |
Definition at line 48 of file class.ilObjTestAccess.php.