- Todo:
 - this should be moved to a general appraisee/appraisal manager 
 
- Author
 - Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de 
 
Definition at line 29 of file Survey360Manager.php.
 
◆ __construct()
◆ getOpenSurveysForAppraisee()
      
        
          | ILIAS\Survey\Survey360\Survey360Manager::getOpenSurveysForAppraisee  | 
          ( | 
          int  | 
          $appr_user_id | ) | 
           | 
        
      
 
Get open surveys for rater. 
- Returns
 - int[] 
 
Definition at line 90 of file Survey360Manager.php.
   94         $open_surveys = $this->appr_repo->getUnclosedSurveysForAppraisee($appr_user_id);
    97         $has_ended = $this->set_repo->hasEnded($open_surveys);
    98         $open_surveys = array_filter($open_surveys, 
static function (
int $i) use ($has_ended): 
bool {
    99             return !($has_ended[$i] ?? 
false);
   102         return $open_surveys;
  
 
 
◆ getOpenSurveysForRater()
      
        
          | ILIAS\Survey\Survey360\Survey360Manager::getOpenSurveysForRater  | 
          ( | 
          int  | 
          $rater_user_id | ) | 
           | 
        
      
 
Get open surveys for rater. 
- Parameters
 - 
  
  
 
- Returns
 - int[] 
 
Definition at line 49 of file Survey360Manager.php.
   53         $appraisees = $this->appr_repo->getAppraiseesForRater($rater_user_id);
    56         $finished_ids = 
array_map(
static function (array $i): 
string {
    57             return $i[
"survey_id"] . 
":" . $i[
"appr_id"];
    58         }, $this->run_repo->getFinishedAppraiseesForRater($rater_user_id));
    59         $open_appraisees = array_filter($appraisees, 
static function (array $i) use ($finished_ids): 
bool {
    60             return !in_array($i[
"survey_id"] . 
":" . $i[
"appr_id"], $finished_ids, 
true);
    64         $open_surveys = array_unique(array_column($open_appraisees, 
"survey_id"));
    67         $closed_appr = $this->appr_repo->getClosedAppraiseesForSurveys($open_surveys);
    68         $closed_appr_ids = 
array_map(
static function (array $i): 
string {
    69             return $i[
"survey_id"] . 
":" . $i[
"appr_id"];
    72         $open_appraisees = array_filter($open_appraisees, 
static function (array $i) use ($closed_appr_ids): 
bool {
    73             return !in_array($i[
"survey_id"] . 
":" . $i[
"appr_id"], $closed_appr_ids, 
true);
    75         $open_surveys = array_unique(array_column($open_appraisees, 
"survey_id"));
    78         $has_ended = $this->set_repo->hasEnded($open_surveys);
    79         $open_surveys = array_filter($open_surveys, 
static function (
int $i) use ($has_ended): 
bool {
    80             return !($has_ended[$i] ?? 
false);
 
 
 
 
◆ $appr_repo
◆ $run_repo
◆ $set_repo
The documentation for this class was generated from the following file: