ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilStudyProgrammeAutoMembershipSource.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types = 1);
4
10
class
ilStudyProgrammeAutoMembershipSource
11
{
12
const
TYPE_ROLE
=
'role'
;
13
const
TYPE_GROUP
=
'grp'
;
14
const
TYPE_COURSE
=
'crs'
;
15
const
TYPE_ORGU
=
'orgu'
;
16
17
const
SOURCE_MAPPING
= [
18
self::TYPE_ROLE =>
ilStudyProgrammeAssignment::AUTO_ASSIGNED_BY_ROLE
,
19
self::TYPE_GROUP =>
ilStudyProgrammeAssignment::AUTO_ASSIGNED_BY_GROUP
,
20
self::TYPE_COURSE =>
ilStudyProgrammeAssignment::AUTO_ASSIGNED_BY_COURSE
,
21
self::TYPE_ORGU =>
ilStudyProgrammeAssignment::AUTO_ASSIGNED_BY_ORGU
22
];
23
24
28
protected
$prg_obj_id
;
29
33
protected
$source_type
;
34
38
protected
$source_id
;
39
43
protected
$enabled
;
44
48
protected
$last_edited_usr_id
;
49
53
protected
$last_edited
;
54
55
public
function
__construct
(
56
int
$prg_obj_id
,
57
string
$source_type
,
58
int
$source_id
,
59
bool
$enabled
,
60
int
$last_edited_usr_id
,
61
\
DateTimeImmutable
$last_edited
62
) {
63
if
(!in_array($source_type, [
64
self::TYPE_ROLE,
65
self::TYPE_GROUP,
66
self::TYPE_COURSE,
67
self::TYPE_ORGU
68
])) {
69
throw
new \InvalidArgumentException(
"Invalid source-type: "
. $source_type, 1);
70
}
71
72
$this->prg_obj_id =
$prg_obj_id
;
73
$this->source_type =
$source_type
;
74
$this->source_id =
$source_id
;
75
$this->enabled =
$enabled
;
76
$this->last_edited_usr_id =
$last_edited_usr_id
;
77
$this->last_edited =
$last_edited
;
78
}
79
80
public
function
getPrgObjId
() : int
81
{
82
return
$this->prg_obj_id
;
83
}
84
85
public
function
getSourceType
() : string
86
{
87
return
$this->source_type
;
88
}
89
90
public
function
getSourceId
() : int
91
{
92
return
$this->source_id
;
93
}
94
95
public
function
isEnabled
() : bool
96
{
97
return
$this->enabled
;
98
}
99
100
public
function
getLastEditorId
() : int
101
{
102
return
$this->last_edited_usr_id
;
103
}
104
105
public
function
getLastEdited
() : \
DateTimeImmutable
106
{
107
return
$this->last_edited
;
108
}
109
}
ilStudyProgrammeAutoMembershipSource\__construct
__construct(int $prg_obj_id, string $source_type, int $source_id, bool $enabled, int $last_edited_usr_id, \DateTimeImmutable $last_edited)
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:55
ilStudyProgrammeAutoMembershipSource\$enabled
$enabled
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:43
DateTimeImmutable
ilStudyProgrammeAssignment\AUTO_ASSIGNED_BY_ROLE
const AUTO_ASSIGNED_BY_ROLE
Definition:
class.ilStudyProgrammeAssignment.php:20
ilStudyProgrammeAutoMembershipSource\$last_edited_usr_id
$last_edited_usr_id
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:48
ilStudyProgrammeAutoMembershipSource\isEnabled
isEnabled()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:95
ilStudyProgrammeAutoMembershipSource\$source_id
$source_id
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:38
ilStudyProgrammeAutoMembershipSource\$last_edited
$last_edited
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:53
ilStudyProgrammeAutoMembershipSource\getSourceId
getSourceId()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:90
ilStudyProgrammeAutoMembershipSource\SOURCE_MAPPING
const SOURCE_MAPPING
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:17
ilStudyProgrammeAutoMembershipSource\TYPE_COURSE
const TYPE_COURSE
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:14
ilStudyProgrammeAutoMembershipSource\$source_type
$source_type
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:33
ilStudyProgrammeAutoMembershipSource\TYPE_ROLE
const TYPE_ROLE
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:12
ilStudyProgrammeAutoMembershipSource\getPrgObjId
getPrgObjId()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:80
ilStudyProgrammeAutoMembershipSource\$prg_obj_id
$prg_obj_id
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:28
ilStudyProgrammeAutoMembershipSource
Class ilStudyProgrammeAutoMembershipSource.
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:10
ilStudyProgrammeAutoMembershipSource\getLastEditorId
getLastEditorId()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:100
ilStudyProgrammeAutoMembershipSource\TYPE_ORGU
const TYPE_ORGU
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:15
ilStudyProgrammeAssignment\AUTO_ASSIGNED_BY_COURSE
const AUTO_ASSIGNED_BY_COURSE
Definition:
class.ilStudyProgrammeAssignment.php:22
ilStudyProgrammeAssignment\AUTO_ASSIGNED_BY_ORGU
const AUTO_ASSIGNED_BY_ORGU
Definition:
class.ilStudyProgrammeAssignment.php:21
ilStudyProgrammeAutoMembershipSource\getSourceType
getSourceType()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:85
ilStudyProgrammeAssignment\AUTO_ASSIGNED_BY_GROUP
const AUTO_ASSIGNED_BY_GROUP
Definition:
class.ilStudyProgrammeAssignment.php:23
ilStudyProgrammeAutoMembershipSource\getLastEdited
getLastEdited()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:105
ilStudyProgrammeAutoMembershipSource\TYPE_GROUP
const TYPE_GROUP
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:13
Modules
StudyProgramme
classes
model
AutoMemberships
class.ilStudyProgrammeAutoMembershipSource.php
Generated on Thu Apr 3 2025 21:00:59 for ILIAS by
1.8.13 (using
Doxyfile
)