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.ilOrgUnitOperationContext.php
Go to the documentation of this file.
1
<?php
2
23
class
ilOrgUnitOperationContext
24
{
25
public
const
CONTEXT_OBJECT
=
"object"
;
26
public
const
CONTEXT_CRS
=
"crs"
;
27
public
const
CONTEXT_GRP
=
"grp"
;
28
public
const
CONTEXT_IASS
=
"iass"
;
29
public
const
CONTEXT_TST
=
"tst"
;
30
public
const
CONTEXT_EXC
=
"exc"
;
31
public
const
CONTEXT_SVY
=
"svy"
;
32
public
const
CONTEXT_USRF
=
"usrf"
;
33
public
const
CONTEXT_PRG
=
"prg"
;
34
public
const
CONTEXT_ETAL
=
"etal"
;
35
39
public
static
array
$available_contexts
= [
40
self::CONTEXT_OBJECT,
41
self::CONTEXT_CRS,
42
self::CONTEXT_GRP,
43
self::CONTEXT_IASS,
44
self::CONTEXT_TST,
45
self::CONTEXT_EXC,
46
self::CONTEXT_SVY,
47
self::CONTEXT_USRF,
48
self::CONTEXT_PRG,
49
self::CONTEXT_ETAL,
50
];
51
52
protected
?
int
$id
= 0;
53
protected
string
$context
= self::CONTEXT_OBJECT;
54
protected
int
$parent_context_id
= 0;
55
protected
array
$path_names
= [self::CONTEXT_OBJECT];
56
protected
array
$path_ids
= [0];
57
58
public
function
__construct
(?
int
$id = 0)
59
{
60
$this->
id
=
$id
;
61
$this->path_ids = [
$id
];
62
}
63
64
public
function
getId
(): ?
int
65
{
66
return
$this->id
;
67
}
68
69
public
function
getContext
(): string
70
{
71
return
$this->context
;
72
}
73
74
public
function
withContext
(
string
$context): self
75
{
76
$clone = clone $this;
77
$clone->context =
$context
;
78
return
$clone;
79
}
80
81
public
function
getParentContextId
():
int
82
{
83
return
$this->parent_context_id
;
84
}
85
86
public
function
withParentContextId
(
int
$parent_context_id): self
87
{
88
$clone = clone $this;
89
$clone->parent_context_id =
$parent_context_id
;
90
return
$clone;
91
}
92
93
public
function
getPathNames
(): array
94
{
95
return
$this->path_names
;
96
}
97
98
public
function
withPathNames
(array $path_names): self
99
{
100
$clone = clone $this;
101
$clone->path_names =
$path_names
;
102
return
$clone;
103
}
104
105
public
function
getPathIds
(): array
106
{
107
return
$this->path_ids
;
108
}
109
110
public
function
withPathIds
(array $path_ids): self
111
{
112
$clone = clone $this;
113
$clone->path_ids =
$path_ids
;
114
return
$clone;
115
}
116
121
public
function
getPopulatedContextNames
(): array
122
{
123
return
$this->
getPathNames
();
124
}
125
126
127
132
public
function
getPopulatedContextIds
(): array
133
{
134
return
$this->
getPathIds
();
135
}
136
}
ilOrgUnitOperationContext\getParentContextId
getParentContextId()
Definition:
class.ilOrgUnitOperationContext.php:81
ilOrgUnitOperationContext\getPopulatedContextIds
getPopulatedContextIds()
Definition:
class.ilOrgUnitOperationContext.php:132
ilOrgUnitOperationContext\withContext
withContext(string $context)
Definition:
class.ilOrgUnitOperationContext.php:74
ilOrgUnitOperationContext\CONTEXT_PRG
const CONTEXT_PRG
Definition:
class.ilOrgUnitOperationContext.php:33
ilOrgUnitOperationContext\CONTEXT_OBJECT
const CONTEXT_OBJECT
Definition:
class.ilOrgUnitOperationContext.php:25
ilOrgUnitOperationContext\withParentContextId
withParentContextId(int $parent_context_id)
Definition:
class.ilOrgUnitOperationContext.php:86
ilOrgUnitOperationContext\CONTEXT_USRF
const CONTEXT_USRF
Definition:
class.ilOrgUnitOperationContext.php:32
ilOrgUnitOperationContext\getPopulatedContextNames
getPopulatedContextNames()
Definition:
class.ilOrgUnitOperationContext.php:121
ilOrgUnitOperationContext\CONTEXT_IASS
const CONTEXT_IASS
Definition:
class.ilOrgUnitOperationContext.php:28
ilOrgUnitOperationContext\getContext
getContext()
Definition:
class.ilOrgUnitOperationContext.php:69
ilOrgUnitOperationContext\CONTEXT_ETAL
const CONTEXT_ETAL
Definition:
class.ilOrgUnitOperationContext.php:34
ilOrgUnitOperationContext\$path_names
array $path_names
Definition:
class.ilOrgUnitOperationContext.php:55
ilOrgUnitOperationContext\CONTEXT_TST
const CONTEXT_TST
Definition:
class.ilOrgUnitOperationContext.php:29
ilOrgUnitOperationContext\withPathIds
withPathIds(array $path_ids)
Definition:
class.ilOrgUnitOperationContext.php:110
ilOrgUnitOperationContext\$id
int $id
Definition:
class.ilOrgUnitOperationContext.php:52
ilOrgUnitOperationContext\CONTEXT_EXC
const CONTEXT_EXC
Definition:
class.ilOrgUnitOperationContext.php:30
ilOrgUnitOperationContext\$parent_context_id
int $parent_context_id
Definition:
class.ilOrgUnitOperationContext.php:54
ilOrgUnitOperationContext\CONTEXT_GRP
const CONTEXT_GRP
Definition:
class.ilOrgUnitOperationContext.php:27
ilOrgUnitOperationContext\CONTEXT_CRS
const CONTEXT_CRS
Definition:
class.ilOrgUnitOperationContext.php:26
ilOrgUnitOperationContext\$context
string $context
Definition:
class.ilOrgUnitOperationContext.php:53
ilOrgUnitOperationContext
ilOrgUnitOperationContext\__construct
__construct(?int $id=0)
Definition:
class.ilOrgUnitOperationContext.php:58
ilOrgUnitOperationContext\getPathNames
getPathNames()
Definition:
class.ilOrgUnitOperationContext.php:93
ilOrgUnitOperationContext\getId
getId()
Definition:
class.ilOrgUnitOperationContext.php:64
ilOrgUnitOperationContext\$available_contexts
static array $available_contexts
Definition:
class.ilOrgUnitOperationContext.php:39
ilOrgUnitOperationContext\withPathNames
withPathNames(array $path_names)
Definition:
class.ilOrgUnitOperationContext.php:98
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ilOrgUnitOperationContext\CONTEXT_SVY
const CONTEXT_SVY
Definition:
class.ilOrgUnitOperationContext.php:31
ilOrgUnitOperationContext\getPathIds
getPathIds()
Definition:
class.ilOrgUnitOperationContext.php:105
ilOrgUnitOperationContext\$path_ids
array $path_ids
Definition:
class.ilOrgUnitOperationContext.php:56
components
ILIAS
OrgUnit
classes
Positions
Operation
class.ilOrgUnitOperationContext.php
Generated on Wed Apr 2 2025 23:03:22 for ILIAS by
1.8.13 (using
Doxyfile
)