3 declare(strict_types=0);
30 public static function isSuggested(
int $a_usr_id,
int $a_crs_id,
int $a_objective_id): bool
32 if (!isset(self::$suggested[$a_usr_id][$a_crs_id])) {
33 self::$suggested[$a_usr_id][$a_crs_id] = self::readSuggested($a_usr_id, $a_crs_id);
35 return in_array($a_objective_id, self::$suggested[$a_usr_id][$a_crs_id]);
38 public static function getStatus(
int $a_usr_id,
int $a_crs_id): string
40 if (isset(self::$status[$a_usr_id][$a_crs_id])) {
41 return self::$status[$a_usr_id][$a_crs_id];
44 return self::$status[$a_usr_id][$a_crs_id] = $tmp_res->getStatus($a_crs_id);
47 protected static function readSuggested(
int $a_usr_id,
int $a_crs_id): array
static isSuggested(int $a_usr_id, int $a_crs_id, int $a_objective_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static readSuggested(int $a_usr_id, int $a_crs_id)
static _getSuggested(int $a_user_id, int $a_crs_id, string $a_status=self::IL_OBJECTIVE_STATUS_FINAL)
static getStatus(int $a_usr_id, int $a_crs_id)