ILIAS  release_7 Revision v7.30-3-g800a261c036
RepositoryObject.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2018 Jesús López <lopez@leifos.com> Extended GPL, see docs/LICENSE */
4
6
11
13{
14
18 protected $object_icon;
19
23 protected $progress;
24
28 protected $certificate;
29
33 protected $actions;
34
39 public function withObjectIcon(Icon $icon)
40 {
41 $icon = $icon->withSize("medium"); // ensure same size
42 $clone = clone $this;
43 $clone->object_icon = $icon;
44 return $clone;
45 }
46
47 public function getObjectIcon()
48 {
49 return $this->object_icon;
50 }
51
56 public function withProgress(ProgressMeter $a_progressmeter)
57 {
58 $clone = clone $this;
59 $clone->progress = $a_progressmeter;
60 return $clone;
61 }
62
67 public function getProgress()
68 {
69 return $this->progress;
70 }
71
76 public function withCertificateIcon($a_certificate) : RepositoryObject
77 {
78 $clone = clone $this;
79 $clone->certificate = $a_certificate;
80 return $clone;
81 }
82
87 public function getCertificateIcon()
88 {
89 return $this->certificate;
90 }
91
96 public function withActions($dropdown) : RepositoryObject
97 {
98 $clone = clone $this;
99 $clone->actions = $dropdown;
100 return $clone;
101 }
102
107 public function getActions()
108 {
109 return $this->actions;
110 }
111}
An exception for terminatinating execution or to throw for unit testing.
getActions()
Get dropdown with different actions.
This describes commonalities between all types of Dropdowns.
Definition: Dropdown.php:16
This describes how an icon could be modified during construction of UI.
Definition: Icon.php:10
withSize($size)
Set the size for this icon.