ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Standard.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2017 Alexander Killing <killing@leifos.de> Extended GPL, see docs/LICENSE */
4
6
8
9class Standard extends Link implements C\Link\Standard
10{
11
15 protected $label;
16
22 public function __construct($label, $action)
23 {
24 parent::__construct($action);
25 $this->checkStringArg("label", $label);
26 $this->label = $label;
27 }
28
32 public function getLabel()
33 {
34 return $this->label;
35 }
36}
An exception for terminatinating execution or to throw for unit testing.
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.