ILIAS
trunk Revision v11.0_alpha-1702-gfd3ecb7f852
◀ 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
BasicBucketMeta.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\BackgroundTasks\Implementation\Bucket
;
20
21
use
ILIAS\BackgroundTasks\BucketMeta
;
22
use
ILIAS\BackgroundTasks\Exceptions\BucketNotFoundException
;
23
use
ILIAS\BackgroundTasks\Task
;
24
32
class
BasicBucketMeta
implements
BucketMeta
33
{
34
protected
int
$user_id
;
35
protected
int
$state
;
36
protected
string
$title
=
""
;
37
protected
string
$description
=
""
;
38
protected
int
$percentage
= 0;
39
40
public
function
getUserId
():
int
41
{
42
return
$this->user_id
;
43
}
44
45
public
function
setUserId
(
int
$user_id): void
46
{
47
$this->user_id =
$user_id
;
48
}
49
50
public
function
getState
():
int
51
{
52
return
$this->state
;
53
}
54
55
public
function
setState
(
int
$state): void
56
{
57
$this->state =
$state
;
58
}
59
60
public
function
getTitle
(): string
61
{
62
return
$this->title
;
63
}
64
65
public
function
setTitle
(
string
$title): void
66
{
67
$this->title =
$title
;
68
}
69
70
public
function
getDescription
(): string
71
{
72
return
$this->description
;
73
}
74
75
public
function
setDescription
(
string
$description): void
76
{
77
$this->description =
$description
;
78
}
79
80
public
function
getPercentage
():
int
81
{
82
return
$this->percentage
;
83
}
84
85
public
function
setPercentage
(
Task
$task,
int
$percentage): void
86
{
87
throw
new
BucketNotFoundException
(
"You cannot set the percentage on an empty bucket."
);
88
}
89
90
public
function
getOverallPercentage
():
int
91
{
92
return
$this->percentage
;
93
}
94
95
public
function
setOverallPercentage
(
int
$percentage): void
96
{
97
$this->percentage =
$percentage
;
98
}
99
}
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\$user_id
int $user_id
Definition:
BasicBucketMeta.php:34
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\$percentage
int $percentage
Definition:
BasicBucketMeta.php:38
BucketMeta
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\setOverallPercentage
setOverallPercentage(int $percentage)
Definition:
BasicBucketMeta.php:95
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\$description
string $description
Definition:
BasicBucketMeta.php:37
ILIAS\BackgroundTasks\Exceptions\BucketNotFoundException
Definition:
BucketNotFoundException.php:25
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta
Definition:
BasicBucketMeta.php:32
ILIAS\BackgroundTasks\Task
Definition:
Task.php:35
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\$title
string $title
Definition:
BasicBucketMeta.php:36
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\getDescription
getDescription()
Definition:
BasicBucketMeta.php:70
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\getTitle
getTitle()
Definition:
BasicBucketMeta.php:60
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\$state
int $state
Definition:
BasicBucketMeta.php:35
ILIAS\BackgroundTasks\Implementation\Bucket
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
BasicBucket.php:19
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\setDescription
setDescription(string $description)
Definition:
BasicBucketMeta.php:75
ILIAS\BackgroundTasks\Task
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
Job.php:19
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\setPercentage
setPercentage(Task $task, int $percentage)
Definition:
BasicBucketMeta.php:85
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\setState
setState(int $state)
Definition:
BasicBucketMeta.php:55
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\getUserId
getUserId()
Definition:
BasicBucketMeta.php:40
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\getPercentage
getPercentage()
Definition:
BasicBucketMeta.php:80
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\getState
getState()
Definition:
BasicBucketMeta.php:50
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\setUserId
setUserId(int $user_id)
Definition:
BasicBucketMeta.php:45
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\setTitle
setTitle(string $title)
Definition:
BasicBucketMeta.php:65
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
BucketNotFoundException
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\getOverallPercentage
getOverallPercentage()
Definition:
BasicBucketMeta.php:90
ILIAS\BackgroundTasks\BucketMeta
Definition:
BucketMeta.php:26
components
ILIAS
BackgroundTasks
src
Implementation
Bucket
BasicBucketMeta.php
Generated on Thu Apr 3 2025 23:02:19 for ILIAS by
1.8.13 (using
Doxyfile
)