ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
class ilcourseobjective More...
Public Member Functions | |
__construct ($a_usr_id) | |
Constructor. More... | |
getUserId () | |
getAccomplished ($a_crs_id) | |
getSuggested ($a_crs_id, $a_status=IL_OBJECTIVE_STATUS_FINAL) | |
reset ($a_course_id) | |
getStatus ($a_course_id) | |
hasAccomplishedObjective ($a_objective_id) | |
readStatus ($a_crs_id) | |
__deleteEntries ($a_objective_ids) | |
Static Public Member Functions | |
static | _getAccomplished ($a_user_id, $a_crs_id) |
static | _getSuggested ($a_user_id, $a_crs_id, $a_status=IL_OBJECTIVE_STATUS_FINAL) |
static | getSuggestedQuestions ($a_usr_id, $a_crs_id) |
get suggested questions ids More... | |
static | _deleteUser ($user_id) |
static | _updateObjectiveResult ($a_user_id, $a_active_id, $a_question_id) |
static | _readAssignedObjectivesOfQuestion ($a_question_id) |
static | _readAssignedObjectives ($a_all_objectives) |
static | _updateObjectiveStatus ($a_user_id, $objectives) |
static | __isFullfilled ($question_points, $objective_data) |
static | __updatePassed ($a_user_id, $objective_ids) |
can be protected? More... | |
Data Fields | |
$db = null | |
$user_id = null | |
Protected Member Functions | |
resetTestForUser (ilObjTest $a_test, $a_user_id) | |
class ilcourseobjective
Definition at line 19 of file class.ilCourseObjectiveResult.php.
ilCourseObjectiveResult::__construct | ( | $a_usr_id | ) |
Constructor.
int | $a_usr_id |
Definition at line 29 of file class.ilCourseObjectiveResult.php.
References $ilDB.
ilCourseObjectiveResult::__deleteEntries | ( | $a_objective_ids | ) |
|
static |
Definition at line 444 of file class.ilCourseObjectiveResult.php.
Referenced by _updateObjectiveStatus().
|
static |
can be protected?
type $ilDB
type | $a_user_id | |
type | $objective_ids |
Definition at line 471 of file class.ilCourseObjectiveResult.php.
References $ilDB, $query, $res, $row, ilCourseParticipants\_getInstanceByObjId(), ilLPStatusWrapper\_updateStatus(), array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by _updateObjectiveStatus().
|
static |
|
static |
Definition at line 46 of file class.ilCourseObjectiveResult.php.
References $ilDB, $query, $res, $row, ilCourseObjective\_getObjectiveIds(), array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by getAccomplished().
|
static |
Definition at line 73 of file class.ilCourseObjectiveResult.php.
References $ilDB, $query, $res, $row, ilCourseObjective\_getObjectiveIds(), array, ilDBConstants\FETCHMODE_OBJECT, IL_OBJECTIVE_STATUS_FINAL, and IL_OBJECTIVE_STATUS_FINISHED.
Referenced by getSuggested(), and ilCourseObjectiveResultCache\readSuggested().
|
static |
Definition at line 346 of file class.ilCourseObjectiveResult.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by getStatus(), and readStatus().
|
static |
Definition at line 323 of file class.ilCourseObjectiveResult.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
|
static |
Definition at line 310 of file class.ilCourseObjectiveResult.php.
Referenced by assQuestion\_setReachedPoints(), and assQuestion\calculateResultsFromSolution().
|
static |
Definition at line 373 of file class.ilCourseObjectiveResult.php.
References $data, $ilDB, $ilUser, $query, $res, $row, __isFullfilled(), __updatePassed(), array, ilDBConstants\FETCHMODE_OBJECT, and ilUtil\quoteArray().
Referenced by readStatus().
ilCourseObjectiveResult::getAccomplished | ( | $a_crs_id | ) |
Definition at line 42 of file class.ilCourseObjectiveResult.php.
References _getAccomplished(), and getUserId().
Referenced by getStatus().
ilCourseObjectiveResult::getStatus | ( | $a_course_id | ) |
Definition at line 213 of file class.ilCourseObjectiveResult.php.
References $data, assQuestion\_areAnswered(), ilCourseObjective\_getObjectiveIds(), _readAssignedObjectives(), getAccomplished(), getSuggested(), getUserId(), IL_OBJECTIVE_STATUS_EMPTY, IL_OBJECTIVE_STATUS_FINAL, IL_OBJECTIVE_STATUS_FINISHED, IL_OBJECTIVE_STATUS_NONE, IL_OBJECTIVE_STATUS_PRETEST, and IL_OBJECTIVE_STATUS_PRETEST_NON_SUGGEST.
ilCourseObjectiveResult::getSuggested | ( | $a_crs_id, | |
$a_status = IL_OBJECTIVE_STATUS_FINAL |
|||
) |
Definition at line 68 of file class.ilCourseObjectiveResult.php.
References _getSuggested(), and getUserId().
Referenced by getStatus().
|
static |
get suggested questions ids
object | $a_usr_id | |
object | $a_crs_id |
Definition at line 117 of file class.ilCourseObjectiveResult.php.
References array.
ilCourseObjectiveResult::getUserId | ( | ) |
Definition at line 37 of file class.ilCourseObjectiveResult.php.
References $user_id.
Referenced by getAccomplished(), getStatus(), getSuggested(), hasAccomplishedObjective(), readStatus(), and reset().
ilCourseObjectiveResult::hasAccomplishedObjective | ( | $a_objective_id | ) |
Definition at line 255 of file class.ilCourseObjectiveResult.php.
References $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, and getUserId().
ilCourseObjectiveResult::readStatus | ( | $a_crs_id | ) |
Definition at line 270 of file class.ilCourseObjectiveResult.php.
References ilCourseObjective\_getObjectiveIds(), _readAssignedObjectives(), _updateObjectiveStatus(), and getUserId().
ilCourseObjectiveResult::reset | ( | $a_course_id | ) |
Definition at line 146 of file class.ilCourseObjectiveResult.php.
References $factory, $ilDB, $lng, $query, $res, ilCourseObjective\_getObjectiveIds(), ilLPStatusWrapper\_updateStatus(), array, ilLOTestAssignments\getInstance(), ilLOSettings\getInstanceByObjId(), getUserId(), resetTestForUser(), ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.
Referenced by ilObjCourseGUI\resetObject().
|
protected |
Definition at line 129 of file class.ilCourseObjectiveResult.php.
References array, ilObjTest\getActiveIdOfUser(), ilObject\getId(), ilObjectLP\getInstance(), and ilObjTest\removeTestActives().
Referenced by reset().
ilCourseObjectiveResult::$db = null |
Definition at line 21 of file class.ilCourseObjectiveResult.php.
ilCourseObjectiveResult::$user_id = null |
Definition at line 22 of file class.ilCourseObjectiveResult.php.
Referenced by _deleteUser(), and getUserId().