ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ReportDto.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 class ReportDto
24 {
26  private array $folder_objects = [];
27 
28  public function __construct(private readonly int $user_id)
29  {
30  }
31 
32  public function getUserId(): int
33  {
34  return $this->user_id;
35  }
36 
37  public function addFolderObject(FolderDto $folder_obj): void
38  {
39  $this->folder_objects[$folder_obj->getFolderId()] = $folder_obj;
40  }
41 
42  public function getFolderObjectById(int $folder_id): ?FolderDto
43  {
44  return $this->folder_objects[$folder_id] ?? null;
45  }
46 
50  public function getFolderObjects(): array
51  {
52  return $this->folder_objects;
53  }
54 }
array $folder_objects
Definition: ReportDto.php:26
getFolderObjects()
Definition: ReportDto.php:50
addFolderObject(FolderDto $folder_obj)
Definition: ReportDto.php:37
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getFolderObjectById(int $folder_id)
Definition: ReportDto.php:42
__construct(private readonly int $user_id)
Definition: ReportDto.php:28