ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilLPStatusIndividualAssessment.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=0);
20
22{
23 public static function _getNotAttempted(int $a_obj_id): array
24 {
26 $a_obj_id,
28 );
29 }
30
31 public static function _getCountNotAttempted(int $a_obj_id): int
32 {
33 return count(self::_getNotAttempted($a_obj_id));
34 }
35
36 public static function _getCountInProgress(int $a_obj_id): int
37 {
38 return count(self::_getInProgress($a_obj_id));
39 }
40
41 public static function _getInProgress(int $a_obj_id): array
42 {
44 $a_obj_id,
46 );
47 }
48
49 public static function _getCountCompleted(int $a_obj_id): int
50 {
51 return count(self::_getCompleted($a_obj_id));
52 }
53
54 public static function _getCompleted(int $a_obj_id): array
55 {
57 $a_obj_id,
59 );
60 }
61
62 public static function _getCountFailed(int $a_obj_id): int
63 {
64 return count(self::_getFailed($a_obj_id));
65 }
66
67 public static function _getFailed(int $a_obj_id): array
68 {
70 $a_obj_id,
72 );
73 }
74
75 public function determineStatus(
76 int $a_obj_id,
77 int $a_usr_id,
78 ?object $a_obj = null
79 ): int {
80 switch ((string) ilIndividualAssessmentLPInterface::determineStatusOfMember(
81 $a_obj_id,
82 $a_usr_id
83 )) {
92 default:
94 }
95 }
96}
static getMembersHavingStatusIn(int $iass_id, int $status)
determineStatus(int $a_obj_id, int $a_usr_id, ?object $a_obj=null)
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...
const LP_STATUS_COMPLETED_NUM
const LP_STATUS_IN_PROGRESS_NUM
const LP_STATUS_NOT_ATTEMPTED_NUM
const LP_STATUS_FAILED_NUM