ILIAS
trunk Revision v11.0_alpha-1689-g66c127b4ae8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
class.ilStudyProgrammeAutoMembershipSource.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
26
class
ilStudyProgrammeAutoMembershipSource
27
{
28
public
const
TYPE_ROLE
=
'role'
;
29
public
const
TYPE_GROUP
=
'grp'
;
30
public
const
TYPE_COURSE
=
'crs'
;
31
public
const
TYPE_ORGU
=
'orgu'
;
32
33
public
const
SOURCE_MAPPING
= [
34
self::TYPE_ROLE =>
ilPRGAssignment::AUTO_ASSIGNED_BY_ROLE
,
35
self::TYPE_GROUP =>
ilPRGAssignment::AUTO_ASSIGNED_BY_GROUP
,
36
self::TYPE_COURSE =>
ilPRGAssignment::AUTO_ASSIGNED_BY_COURSE
,
37
self::TYPE_ORGU =>
ilPRGAssignment::AUTO_ASSIGNED_BY_ORGU
38
];
39
40
public
function
__construct
(
41
protected
int
$prg_obj_id,
42
protected
string
$source_type,
43
protected
int
$source_id,
44
protected
bool
$enabled,
45
protected
int
$last_edited_usr_id,
46
protected
DateTimeImmutable
$last_edited,
47
protected
bool
$search_recursive
48
) {
49
if
(!in_array($source_type, [
50
self::TYPE_ROLE,
51
self::TYPE_GROUP,
52
self::TYPE_COURSE,
53
self::TYPE_ORGU
54
])) {
55
throw
new
InvalidArgumentException
(
"Invalid source-type: "
. $source_type, 1);
56
}
57
}
58
59
public
function
getPrgObjId
():
int
60
{
61
return
$this->prg_obj_id;
62
}
63
64
public
function
getSourceType
(): string
65
{
66
return
$this->source_type;
67
}
68
69
public
function
getSourceId
():
int
70
{
71
return
$this->source_id;
72
}
73
74
public
function
isEnabled
(): bool
75
{
76
return
$this->enabled;
77
}
78
79
public
function
getLastEditorId
():
int
80
{
81
return
$this->last_edited_usr_id;
82
}
83
84
public
function
getLastEdited
():
DateTimeImmutable
85
{
86
return
$this->last_edited;
87
}
88
89
public
function
isSearchRecursive
(): bool
90
{
91
return
$this->search_recursive;
92
}
93
}
ilPRGAssignment\AUTO_ASSIGNED_BY_COURSE
const AUTO_ASSIGNED_BY_COURSE
Definition:
class.ilPRGAssignment.php:39
DateTimeImmutable
ilStudyProgrammeAutoMembershipSource\isEnabled
isEnabled()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:74
ilStudyProgrammeAutoMembershipSource\getSourceId
getSourceId()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:69
ilStudyProgrammeAutoMembershipSource\SOURCE_MAPPING
const SOURCE_MAPPING
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:33
ilStudyProgrammeAutoMembershipSource\TYPE_COURSE
const TYPE_COURSE
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:30
ilStudyProgrammeAutoMembershipSource\TYPE_ROLE
const TYPE_ROLE
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:28
ilStudyProgrammeAutoMembershipSource\getPrgObjId
getPrgObjId()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:59
ilPRGAssignment\AUTO_ASSIGNED_BY_GROUP
const AUTO_ASSIGNED_BY_GROUP
Definition:
class.ilPRGAssignment.php:40
ilPRGAssignment\AUTO_ASSIGNED_BY_ORGU
const AUTO_ASSIGNED_BY_ORGU
Definition:
class.ilPRGAssignment.php:38
ilStudyProgrammeAutoMembershipSource
Class ilStudyProgrammeAutoMembershipSource.
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:26
ilStudyProgrammeAutoMembershipSource\getLastEditorId
getLastEditorId()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:79
ilStudyProgrammeAutoMembershipSource\TYPE_ORGU
const TYPE_ORGU
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:31
ilStudyProgrammeAutoMembershipSource\getSourceType
getSourceType()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:64
ilPRGAssignment\AUTO_ASSIGNED_BY_ROLE
const AUTO_ASSIGNED_BY_ROLE
Definition:
class.ilPRGAssignment.php:37
ilStudyProgrammeAutoMembershipSource\__construct
__construct(protected int $prg_obj_id, protected string $source_type, protected int $source_id, protected bool $enabled, protected int $last_edited_usr_id, protected DateTimeImmutable $last_edited, protected bool $search_recursive)
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:40
InvalidArgumentException
ilStudyProgrammeAutoMembershipSource\isSearchRecursive
isSearchRecursive()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:89
ilStudyProgrammeAutoMembershipSource\getLastEdited
getLastEdited()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:84
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ilStudyProgrammeAutoMembershipSource\TYPE_GROUP
const TYPE_GROUP
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:29
components
ILIAS
StudyProgramme
classes
model
AutoMemberships
class.ilStudyProgrammeAutoMembershipSource.php
Generated on Wed Apr 2 2025 23:03:39 for ILIAS by
1.8.13 (using
Doxyfile
)