ILIAS  release_7 Revision v7.30-3-g800a261c036
InterruptiveItem.php
Go to the documentation of this file.
1<?php
2
4
7
14{
16
20 protected $id;
21
25 protected $title;
26
30 protected $description;
31
35 protected $icon;
36
43 public function __construct($id, $title, Image $icon = null, $description = '')
44 {
45 $this->checkStringArg('title', $title);
46 $this->id = $id;
47 $this->title = $title;
48 $this->icon = $icon;
49 $this->description = $description;
50 }
51
52
56 public function getId()
57 {
58 return $this->id;
59 }
60
61
65 public function getTitle()
66 {
67 return $this->title;
68 }
69
70
74 public function getDescription()
75 {
76 return $this->description;
77 }
78
82 public function getIcon()
83 {
84 return $this->icon;
85 }
86}
An exception for terminatinating execution or to throw for unit testing.
getDescription()
Get the description of a title.string
__construct($id, $title, Image $icon=null, $description='')
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
trait ComponentHelper
Provides common functionality for component implementations.