ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
BasicBucketMeta.php
Go to the documentation of this file.
1
<?php
2
3
namespace
ILIAS\BackgroundTasks\Implementation\Bucket
;
4
5
use
ILIAS\BackgroundTasks\Bucket
;
6
use
ILIAS\BackgroundTasks\BucketMeta
;
7
use
ILIAS\BackgroundTasks\Exceptions\Exception
;
8
use
ILIAS\BackgroundTasks\Task
;
9
use
ILIAS\BackgroundTasks\Task\UserInteraction\Option
;
10
21
class
BasicBucketMeta
implements
BucketMeta
22
{
23
27
protected
$userId
;
31
protected
$state
;
35
protected
$title
=
""
;
39
protected
$description
=
""
;
43
protected
$percentage
= 0;
44
45
49
public
function
getUserId
()
50
{
51
return
$this->userId
;
52
}
53
54
58
public
function
setUserId
(
$userId
)
59
{
60
$this->userId =
$userId
;
61
}
62
63
67
public
function
getState
()
68
{
69
return
$this->state
;
70
}
71
72
76
public
function
setState
(
$state
)
77
{
78
$this->state =
$state
;
79
}
80
81
85
public
function
getTitle
()
86
{
87
return
$this->title
;
88
}
89
90
94
public
function
setTitle
(
$title
)
95
{
96
$this->title =
$title
;
97
}
98
99
103
public
function
getDescription
()
104
{
105
return
$this->description
;
106
}
107
108
112
public
function
setDescription
(
$description
)
113
{
114
$this->description =
$description
;
115
}
116
117
121
public
function
getPercentage
()
122
{
123
return
$this->percentage
;
124
}
125
126
133
public
function
setPercentage
(
Task
$task,
$percentage
)
134
{
135
throw
new \EmptyBucketException(
"You cannot set the percentage on an empty bucket."
);
136
}
137
138
142
public
function
getOverallPercentage
()
143
{
144
return
$this->percentage
;
145
}
146
147
152
public
function
setOverallPercentage
(
$percentage
)
153
{
154
$this->percentage =
$percentage
;
155
}
156
}
BucketMeta
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta
Definition:
BasicBucketMeta.php:21
ILIAS\BackgroundTasks\Task
Definition:
Task.php:21
Exception
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\getDescription
getDescription()
Definition:
BasicBucketMeta.php:103
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\$description
$description
Definition:
BasicBucketMeta.php:39
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\getTitle
getTitle()
Definition:
BasicBucketMeta.php:85
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\$title
$title
Definition:
BasicBucketMeta.php:35
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\$state
$state
Definition:
BasicBucketMeta.php:31
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\setTitle
setTitle($title)
Definition:
BasicBucketMeta.php:94
ILIAS\BackgroundTasks\Implementation\Bucket
Definition:
BasicBucket.php:3
Bucket
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\setOverallPercentage
setOverallPercentage($percentage)
Definition:
BasicBucketMeta.php:152
ILIAS\BackgroundTasks\Task
Definition:
Job.php:3
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\$userId
$userId
Definition:
BasicBucketMeta.php:27
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\getUserId
getUserId()
Definition:
BasicBucketMeta.php:49
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\getPercentage
getPercentage()
Definition:
BasicBucketMeta.php:121
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\setUserId
setUserId($userId)
Definition:
BasicBucketMeta.php:58
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\setState
setState($state)
Definition:
BasicBucketMeta.php:76
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\getState
getState()
Definition:
BasicBucketMeta.php:67
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\setPercentage
setPercentage(Task $task, $percentage)
Definition:
BasicBucketMeta.php:133
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\$percentage
$percentage
Definition:
BasicBucketMeta.php:43
Option
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\setDescription
setDescription($description)
Definition:
BasicBucketMeta.php:112
ILIAS\BackgroundTasks\Implementation\Bucket\BasicBucketMeta\getOverallPercentage
getOverallPercentage()
Definition:
BasicBucketMeta.php:142
ILIAS\BackgroundTasks\BucketMeta
Definition:
BucketMeta.php:15
src
BackgroundTasks
Implementation
Bucket
BasicBucketMeta.php
Generated on Sat Jan 18 2025 19:01:42 for ILIAS by
1.8.13 (using
Doxyfile
)