ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 {
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.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.