ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
BasicBucketMeta.php
Go to the documentation of this file.
1 <?php
2 
4 
7 
18 class BasicBucketMeta implements BucketMeta
19 {
20 
24  protected $userId;
28  protected $state;
32  protected $title = "";
36  protected $description = "";
40  protected $percentage = 0;
41 
42 
46  public function getUserId()
47  {
48  return $this->userId;
49  }
50 
51 
55  public function setUserId($userId)
56  {
57  $this->userId = $userId;
58  }
59 
60 
64  public function getState()
65  {
66  return $this->state;
67  }
68 
69 
73  public function setState($state)
74  {
75  $this->state = $state;
76  }
77 
78 
82  public function getTitle()
83  {
84  return $this->title;
85  }
86 
87 
91  public function setTitle($title)
92  {
93  $this->title = $title;
94  }
95 
96 
100  public function getDescription()
101  {
102  return $this->description;
103  }
104 
105 
109  public function setDescription($description)
110  {
111  $this->description = $description;
112  }
113 
114 
118  public function getPercentage()
119  {
120  return $this->percentage;
121  }
122 
123 
130  public function setPercentage(Task $task, $percentage)
131  {
132  throw new \EmptyBucketException("You cannot set the percentage on an empty bucket.");
133  }
134 
135 
139  public function getOverallPercentage()
140  {
141  return $this->percentage;
142  }
143 
144 
150  {
151  $this->percentage = $percentage;
152  }
153 }