ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilLPStatusIndividualAssessment.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 {
81  $a_obj_id,
82  $a_usr_id
83  )) {
85  return self::LP_STATUS_NOT_ATTEMPTED_NUM;
87  return self::LP_STATUS_IN_PROGRESS_NUM;
89  return self::LP_STATUS_FAILED_NUM;
91  return self::LP_STATUS_COMPLETED_NUM;
92  default:
93  return self::LP_STATUS_NOT_ATTEMPTED_NUM;
94  }
95  }
96 }
determineStatus(int $a_obj_id, int $a_usr_id, ?object $a_obj=null)
static determineStatusOfMember(int $iass_id, int $usr_id)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static getMembersHavingStatusIn(int $iass_id, int $status)