ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
InterruptiveItem.php
Go to the documentation of this file.
1 <?php
2 
4 
7 
14 {
15  use ComponentHelper;
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 }
trait ComponentHelper
Provides common functionality for component implementations.
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
__construct($id, $title, Image $icon=null, $description='')
getDescription()
Get the description of a title.string