ILIAS  release_7 Revision v7.30-3-g800a261c036
HasViewControls.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
6
7use ILIAS\UI\Component\ViewControl\HasViewControls as HasViewControlsInterface;
8
13{
17 protected $view_controls;
18
22 public function withViewControls(array $view_controls) : HasViewControlsInterface
23 {
27 $clone = clone $this;
28 $clone->view_controls = $view_controls;
29 return $clone;
30 }
34 public function getViewControls() : ?array
35 {
36 return $this->view_controls;
37 }
38}
An exception for terminatinating execution or to throw for unit testing.
Trait for adding view controls to a component.
trait HasViewControls
Trait for panels supporting view controls.