|
static | isLPMember (array &$a_res, int $a_usr_id, array $a_obj_ids) |
|
static | isLPMember (array &$res, int $usr_id, array $obj_ids) |
| Find (lp-relevant) members for given object ids. More...
|
|
static | findMembershipsByPath (array &$res, int $usr_id, int $parent_ref_id, array $obj_ids, bool $mapped_ref_ids=false) |
| Find (lp-relevant) memberships by path. More...
|
|
static | getTypeDefaultFromDB (string $type) |
|
Definition at line 26 of file class.ilTestLP.php.
◆ __construct()
ilTestLP::__construct |
( |
int |
$obj_id | ) |
|
◆ getDefaultMode()
ilTestLP::getDefaultMode |
( |
| ) |
|
◆ getDefaultModes()
static ilTestLP::getDefaultModes |
( |
bool |
$a_lp_active | ) |
|
|
static |
◆ getValidModes()
ilTestLP::getValidModes |
( |
| ) |
|
◆ isAnonymized()
ilTestLP::isAnonymized |
( |
| ) |
|
◆ isLPMember()
static ilTestLP::isLPMember |
( |
array & |
$a_res, |
|
|
int |
$a_usr_id, |
|
|
array |
$a_obj_ids |
|
) |
| |
|
staticprotected |
Definition at line 122 of file class.ilTestLP.php.
References $DIC, and $ilDB.
125 $ilDB = $DIC[
'ilDB'];
128 $set =
$ilDB->query(
"SELECT tt.obj_fi" .
129 " FROM tst_active ta" .
130 " JOIN tst_tests tt ON (ta.test_fi = tt.test_id)" .
131 " WHERE " .
$ilDB->in(
"tt.obj_fi", (array) $a_obj_ids,
false,
"integer") .
132 " AND ta.user_fi = " .
$ilDB->quote($a_usr_id,
"integer"));
133 while ($row =
$ilDB->fetchAssoc($set)) {
134 $a_res[$row[
"obj_fi"]] =
true;
◆ resetCustomLPDataForUserIds()
ilTestLP::resetCustomLPDataForUserIds |
( |
array |
$user_ids, |
|
|
bool |
$recursive = true |
|
) |
| |
|
protected |
Definition at line 79 of file class.ilTestLP.php.
References $testObj, ilLPStatusFactory\_getInstance(), ilLOUserResults\deleteResultsFromLP(), ilLOTestAssignments\getInstance(), ilObjectFactory\getInstanceByObjId(), ilLOTestAssignments\lookupContainerForTest(), ilLOTestAssignments\lookupObjectivesForTest(), ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.
88 $testOBJ->removeTestResultsByUserIds($user_ids);
91 $test_ref_id = $this->request->int(
'ref_id');
92 if ($this->testObj && $this->testObj->getRefId()) {
93 $test_ref_id = $this->testObj->getRefId();
96 if ($test_ref_id === 0) {
101 if ($course_obj_id === 0) {
115 if (strtolower(get_class($lp_status)) !==
'illpstatus') {
116 foreach ($user_ids as $user_id) {
117 $lp_status->_updateStatus($course_obj_id, $user_id);
static deleteResultsFromLP(int $a_course_id, array $a_user_ids, bool $a_remove_initial, bool $a_remove_qualified, array $a_objective_ids)
static lookupObjectivesForTest(int $a_test_ref_id)
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
static _getInstance(int $a_obj_id, ?int $a_mode=null)
static getInstance(int $a_container_id)
const TYPE_TEST_QUALIFIED
static lookupContainerForTest(int $a_test_ref_id)
◆ setTestObject()
◆ $request
ILIAS Test InternalRequestService ilTestLP::$request |
|
private |
◆ $testObj
The documentation for this class was generated from the following file: