|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Class ilObjTestAccess. More...
Inheritance diagram for ilObjTestAccess:
Collaboration diagram for ilObjTestAccess: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) | |
| canBeDelivered (ilWACPath $ilWACPath) | |
Static Public Member Functions | |
| static | getConditionOperators () |
| Get possible conditions operators. More... | |
| static | _getCommands () |
| get commands More... | |
| 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) |
| Preload data. More... | |
| 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 Public Member Functions inherited from ilConditionHandling | |
| static | getConditionOperators () |
| Returns an array with valid operators for the specific object type. 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) |
| static | deserializePercentageThresholds (string $value) |
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 44 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.
Reimplemented from ilObjectAccess.
Definition at line 93 of file class.ilObjTestAccess.php.
References $ref_id, $user_id, ILIAS\Repository\access(), ilAccessInfo\IL_NO_OBJECT_ACCESS, ILIAS\Repository\lng(), lookupCreationComplete(), ilObject\lookupOfflineStatus(), and ILIAS\Repository\user().
Here is the call graph for this function:
|
static |
check whether goto script will succeed
Reimplemented from ilObjectAccess.
Definition at line 366 of file class.ilObjTestAccess.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 185 of file class.ilObjTestAccess.php.
Referenced by ilObjTestListGUI\init().
Here is the caller graph for this function:
|
static |
Retrieves a participant name from active id.
| integer | $active_id | Active ID of the participant |
Definition at line 298 of file class.ilObjTestAccess.php.
References $DIC, $ilDB, $lng, ilObjUser\_lookupName(), ANONYMOUS_USER_ID, ilDBConstants\T_INTEGER, and ilLanguage\txt().
Referenced by ilTestParticipantList\buildFullname(), ilTestParticipantData\getFormatedFullnameByActiveId(), and ilTestParticipantData\getOptionArray().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get user id for active id.
| int | active ID of the participant |
Definition at line 349 of file class.ilObjTestAccess.php.
References $DIC, $ilDB, and ilDBConstants\T_INTEGER.
Referenced by ILIAS\Test\Scoring\Manual\ConsecutiveScoring\store(), and ilTestPassFinishTasks\updateLearningProgressAfterPassFinishedIsWritten().
Here is the caller graph for this function:
|
static |
Get all tests using a question pool for random selection.
| int | question pool id |
Definition at line 270 of file class.ilObjTestAccess.php.
References $DIC, $ilDB, and ilDBConstants\T_INTEGER.
|
static |
Returns the ILIAS test id for a given object id.
| integer | $object_id | The object id |
Definition at line 246 of file class.ilObjTestAccess.php.
References $DIC, $ilDB, and ilDBConstants\T_INTEGER.
Referenced by ilLPStatusTestFinished\getParticipants(), and ilSoapTestAdministration\getTestAccess().
Here is the caller graph for this function:
|
static |
returns the objects's OFFline status
Used in ListGUI and Learning Progress
Reimplemented from ilObjectAccess.
Definition at line 389 of file class.ilObjTestAccess.php.
References ilObject\lookupOfflineStatus().
Referenced by ilLOEditorStatus\checkTestOnline().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Preload data.
Reimplemented from ilObjectAccess.
Definition at line 413 of file class.ilObjTestAccess.php.
References $DIC, and ILIAS\Survey\Mode\getId().
Here is the call graph for this function:| ilObjTestAccess::canBeDelivered | ( | ilWACPath | $ilWACPath | ) |
Reimplemented from ilObjectAccess.
Definition at line 66 of file class.ilObjTestAccess.php.
References ILIAS\Repository\access(), findMatch(), ilWACPath\getPath(), and ILIAS\Repository\user().
Here is the call graph for this function:
|
staticprivate |
Definition at line 450 of file class.ilObjTestAccess.php.
|
private |
Definition at line 79 of file class.ilObjTestAccess.php.
References $access, $path, and ILIAS\Data\Result\except().
Referenced by canBeDelivered().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 219 of file class.ilObjTestAccess.php.
|
static |
Get possible conditions operators.
Implements ilConditionHandling.
Definition at line 134 of file class.ilObjTestAccess.php.
References ilConditionHandler\OPERATOR_FAILED, ilConditionHandler\OPERATOR_FINISHED, ilConditionHandler\OPERATOR_NOT_FINISHED, ilConditionHandler\OPERATOR_PASSED, and ilConditionHandler\OPERATOR_RESULT_RANGE_PERCENTAGE.
|
staticprivate |
Definition at line 227 of file class.ilObjTestAccess.php.
References $db, $DIC, ilDBInterface\fetchAssoc(), ilDBInterface\queryF(), and ilDBConstants\T_INTEGER.
Referenced by _checkAccess().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjTestAccess::showCertificateFor | ( | int | $user_id, |
| int | $obj_id | ||
| ) |
Definition at line 424 of file class.ilObjTestAccess.php.
References $user_id.
|
static |
Definition at line 395 of file class.ilObjTestAccess.php.
References $DIC, $ilDB, $user_id, and ilObjectFactory\getInstanceByObjId().
Referenced by ilLOUtils\getTestResultLinkForUser().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 50 of file class.ilObjTestAccess.php.
Referenced by findMatch().
|
staticprivate |
Definition at line 52 of file class.ilObjTestAccess.php.
|
private |
Definition at line 46 of file class.ilObjTestAccess.php.
Referenced by lookupCreationComplete().
|
private |
Definition at line 48 of file class.ilObjTestAccess.php.
Referenced by _getParticipantData().
|
private |
Definition at line 49 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.