ILIAS
trunk Revision v11.0_alpha-1713-gd8962da2f67
◀ 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
ViewDefinition.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\components\ResourceStorage\Resources\Listing
;
22
23
use
ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder
;
24
28
class
ViewDefinition
29
{
30
public
const
MODE_AS_TABLE
= 1;
31
public
const
MODE_AS_ITEMS
= 2;
32
public
const
MODE_AS_DECK
= 3;
33
private
int
$mode
= self::MODE_AS_TABLE;
34
35
public
function
__construct
(
36
private
string
$embedding_gui,
37
private
string
$embedding_cmd,
38
private
string
$title,
39
private
int
$items_per_page = 50,
40
private
?
ResourceStakeholder
$stakeholder =
null
,
41
private
bool
$enable_upload =
false
42
) {
43
if
($this->enable_upload && !$this->stakeholder instanceof
ResourceStakeholder
) {
44
throw
new \InvalidArgumentException(
'If upload is enabled, a stakeholder must be provided'
);
45
}
46
}
47
48
public
function
setMode
(
int
$mode): void
49
{
50
$this->mode =
$mode
;
51
}
52
53
public
function
getMode
():
int
54
{
55
return
$this->mode
;
56
}
57
58
59
public
function
getEmbeddingGui
(): string
60
{
61
return
$this->embedding_gui;
62
}
63
64
public
function
getEmbeddingCmd
(): string
65
{
66
return
$this->embedding_cmd;
67
}
68
69
public
function
getTitle
(): string
70
{
71
return
$this->title;
72
}
73
74
public
function
getItemsPerPage
():
int
75
{
76
return
$this->items_per_page;
77
}
78
79
public
function
getStakeholder
(): ?
ResourceStakeholder
80
{
81
return
$this->stakeholder;
82
}
83
84
public
function
isEnableUpload
(): bool
85
{
86
return
$this->enable_upload;
87
}
88
}
ILIAS\components\ResourceStorage\Resources\Listing\ViewDefinition\MODE_AS_DECK
const MODE_AS_DECK
Definition:
ViewDefinition.php:32
ILIAS\components\ResourceStorage\Resources\Listing\ViewDefinition\isEnableUpload
isEnableUpload()
Definition:
ViewDefinition.php:84
ILIAS\components\ResourceStorage\Resources\Listing\ViewDefinition\setMode
setMode(int $mode)
Definition:
ViewDefinition.php:48
ILIAS\components\ResourceStorage\Resources\Listing\ViewDefinition\__construct
__construct(private string $embedding_gui, private string $embedding_cmd, private string $title, private int $items_per_page=50, private ?ResourceStakeholder $stakeholder=null, private bool $enable_upload=false)
Definition:
ViewDefinition.php:35
ILIAS\components\ResourceStorage\Resources\Listing\ViewDefinition\getEmbeddingGui
getEmbeddingGui()
Definition:
ViewDefinition.php:59
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:142
ILIAS\components\ResourceStorage\Resources\Listing\ViewDefinition\$mode
int $mode
Definition:
ViewDefinition.php:33
ILIAS\components\ResourceStorage\Resources\Listing\ViewDefinition\MODE_AS_ITEMS
const MODE_AS_ITEMS
Definition:
ViewDefinition.php:31
ILIAS\components\ResourceStorage\Resources\Listing\ViewDefinition\getEmbeddingCmd
getEmbeddingCmd()
Definition:
ViewDefinition.php:64
ILIAS\components\ResourceStorage\Resources\Listing\ViewDefinition
Definition:
ViewDefinition.php:28
ILIAS\components\ResourceStorage\Resources\Listing\ViewDefinition\getTitle
getTitle()
Definition:
ViewDefinition.php:69
ILIAS\components\ResourceStorage\Resources\Listing
Definition:
SortDirection.php:21
ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder
Interface ResourceStakeholder.
Definition:
ResourceStakeholder.php:29
ILIAS\components\ResourceStorage\Resources\Listing\ViewDefinition\getMode
getMode()
Definition:
ViewDefinition.php:53
ILIAS\components\ResourceStorage\Resources\Listing\ViewDefinition\getStakeholder
getStakeholder()
Definition:
ViewDefinition.php:79
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ResourceStakeholder
ILIAS\components\ResourceStorage\Resources\Listing\ViewDefinition\getItemsPerPage
getItemsPerPage()
Definition:
ViewDefinition.php:74
ILIAS\components\ResourceStorage\Resources\Listing\ViewDefinition\MODE_AS_TABLE
const MODE_AS_TABLE
Definition:
ViewDefinition.php:30
components
ILIAS
ResourceStorage
classes
Resources
Listing
ViewDefinition.php
Generated on Fri Apr 4 2025 23:03:50 for ILIAS by
1.8.13 (using
Doxyfile
)