28 protected \ilDBInterface
$db;
35 $this->db = (is_null($db))
50 "SELECT obj_id, appr_id FROM svy_360_rater " .
51 " WHERE user_id = %s ",
56 while ($rec = $db->fetchAssoc($set)) {
58 "survey_id" => (
int) $rec[
"obj_id"],
59 "appr_id" => (
int) $rec[
"appr_id"]
77 "SELECT obj_id, user_id FROM svy_360_appr " .
78 " WHERE " . $db->in(
"obj_id", $survey_ids,
false,
"integer") .
79 "AND has_closed = %s",
83 $closed_appraisees = [];
84 while ($rec = $db->fetchAssoc($set)) {
85 $closed_appraisees[] = [
86 "survey_id" => (
int) $rec[
"obj_id"],
87 "appr_id" => (
int) $rec[
"user_id"]
90 return $closed_appraisees;
103 "SELECT DISTINCT obj_id FROM svy_360_appr " .
104 "WHERE user_id = %s " .
105 "AND has_closed = %s",
106 [
"integer",
"integer"],
109 $unclosed_surveys = [];
110 while ($rec = $db->fetchAssoc($set)) {
111 $unclosed_surveys[] = (
int) $rec[
"obj_id"];
113 return $unclosed_surveys;
__construct(\ilDBInterface $db=null)
Apraisee / Rater DB repository Tables: svy_360_rater, svy_360_appr.
getAppraiseesForRater(int $rater_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getUnclosedSurveysForAppraisee(int $appr_user_id)
Get all unclosed surveys of an appraisee.
getClosedAppraiseesForSurveys(array $survey_ids)
Get closed appraisees for a number of surveys.
queryF(string $query, array $types, array $values)