19 declare(strict_types=1);
    32     protected \ilDBInterface 
$db;
    44         $id = $this->db->nextId(
"il_exc_team");
    45         $this->db->insert(
"exc_team_data", [
    46             "id" => [
"integer", 
$id]
    53         $this->db->insert(
"il_exc_team", [
    54             "id" => [
"integer", $team_id],
    55             "ass_id" => [
"integer", $ass_id],
    56             "user_id" => [
"integer", $user_id]
    62         $this->db->manipulateF(
    63             "DELETE FROM il_exc_team WHERE " .
    64             " id = %s AND ass_id = %s AND user_id = %s",
    65             [
"integer", 
"integer", 
"integer"],
    79         $set = $this->db->queryF(
    80             "SELECT * FROM il_exc_team " .
    85         while ($rec = $this->db->fetchAssoc($set)) {
    86             yield $this->data->teamMember(
    99         $set = $this->db->queryF(
   100             "SELECT user_id FROM il_exc_team " .
   106         while ($rec = $this->db->fetchAssoc($set)) {
   107             $ids[] = (
int) $rec[
"user_id"];
   115         $set = $this->db->queryF(
   116             "SELECT id FROM il_exc_team " .
   117             " WHERE ass_id = %s AND user_id = %s",
   118             [
"integer", 
"integer"],
   121         $rec = $this->db->fetchAssoc($set);
   122         if (isset($rec[
"id"])) {
   123             return (
int) $rec[
"id"];
   130         $set = $this->db->queryF(
   131             "SELECT DISTINCT user_id FROM il_exc_team " .
   132             " WHERE ass_id = %s ",
   136         while ($rec = $this->db->fetchAssoc($set)) {
   137             yield (
int) $rec[
"user_id"];
   144         $set = $this->db->queryF(
   145             "SELECT * FROM il_exc_team " .
   146             " WHERE ass_id = %s ",
   150         while ($rec = $this->db->fetchAssoc($set)) {
   151             $map[(
int) $rec[
"user_id"]] = (
int) $rec[
"id"];
   158         $set = $this->db->queryF(
   159             "SELECT ass_id FROM il_exc_team " .
   164         $rec = $this->db->fetchAssoc($set);
   165         return (
int) ($rec[
"ass_id"] ?? 0);
   170         $set = $this->db->queryF(
   171             "SELECT DISTINCT(id) FROM il_exc_team " .
   172             " WHERE ass_id = %s ",
   177         while ($rec = $this->db->fetchAssoc($set)) {
   178             $team_ids[] = (
int) $rec[
"id"];
   185         $this->db->manipulateF(
   186             "DELETE FROM il_exc_team WHERE " .
   193         $this->db->manipulateF(
   194             "DELETE FROM exc_team_data WHERE " .
   205         $this->db->manipulateF(
   206             "DELETE FROM il_exc_team_log WHERE " .
 getMemberIds(int $team_id)
 
removeUser(int $team_id, int $ass_id, int $user_id)
 
InternalDataService $data
 
getAssignmentForTeam(int $team_id)
 
Internal factory for data objects. 
 
Table exc_team_data: Team Table il_exc_team: Team participants (holds the sequence due to historic re...
 
getTeamIdsOfAssignment(int $ass_id)
 
getUserTeamMap(int $assignment_id)
 
getTeamForMember(int $ass_id, int $user_id)
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
deleteTeamLog(int $team_id)
 
__construct(\ilDBInterface $db, InternalDataService $data)
 
getAllMemberIdsOfAssignment(int $assignment_id)
 
addUser(int $team_id, int $ass_id, int $user_id)