ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilOrgUnitOperation.php
Go to the documentation of this file.
1 <?php
2 
25 {
26  public const OP_READ_LEARNING_PROGRESS = 'read_learning_progress';
27  public const OP_WRITE_LEARNING_PROGRESS = 'write_learning_progress';
28  public const OP_EDIT_SUBMISSION_GRADES = 'edit_submissions_grades';
29  public const OP_ACCESS_RESULTS = 'access_results';
30  public const OP_MANAGE_MEMBERS = 'manage_members';
31  public const OP_ACCESS_ENROLMENTS = 'access_enrolments';
32  public const OP_MANAGE_PARTICIPANTS = 'manage_participants';
33  public const OP_SCORE_PARTICIPANTS = 'score_participants';
34  public const OP_VIEW_CERTIFICATES = 'view_certificates';
35  public const OP_VIEW_COMPETENCES = 'view_competences';
36  public const OP_EDIT_USER_ACCOUNTS = 'edit_user_accounts';
37  public const OP_VIEW_MEMBERS = 'view_members';
38  public const OP_VIEW_INDIVIDUAL_PLAN = 'view_individual_plan';
39  public const OP_EDIT_INDIVIDUAL_PLAN = 'edit_individual_plan';
40  public const OP_READ_EMPLOYEE_TALK = 'read_employee_talk';
41  public const OP_CREATE_EMPLOYEE_TALK = 'create_employee_talk';
42  public const OP_EDIT_EMPLOYEE_TALK = 'edit_employee_talk';
43 
44  protected int $operation_id = 0;
45  protected string $operation_string = '';
46  protected string $description = '';
47  protected int $list_order = 0;
48  protected int $context_id = 0;
49 
50  public function __construct($operation_id = 0)
51  {
52  $this->operation_id = $operation_id;
53  }
54 
55  public function getOperationId(): ?int
56  {
57  return $this->operation_id;
58  }
59 
60  public function getOperationString(): string
61  {
63  }
64 
65  public function withOperationString(string $operation_string): self
66  {
67  $clone = clone $this;
68  $clone->operation_string = $operation_string;
69  return $clone;
70  }
71 
72  public function getDescription(): string
73  {
74  return $this->description;
75  }
76 
77  public function withDescription(string $description): self
78  {
79  $clone = clone $this;
80  $clone->description = $description;
81  return $clone;
82  }
83 
84  public function getListOrder(): int
85  {
86  return $this->list_order;
87  }
88 
89  public function withListOrder(int $list_order): self
90  {
91  $clone = clone $this;
92  $clone->list_order = $list_order;
93  return $clone;
94  }
95 
96  public function getContextId(): int
97  {
98  return $this->context_id;
99  }
100 
101  public function withContextId(int $context_id): self
102  {
103  $clone = clone $this;
104  $clone->context_id = $context_id;
105  return $clone;
106  }
107 }
withOperationString(string $operation_string)
withListOrder(int $list_order)
withDescription(string $description)