ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
LoadingAnimationOnClick.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
4
6
12{
13
17 protected $loading_animation_on_click = false;
18
22 public function withLoadingAnimationOnClick(bool $loading_animation_on_click = true)
23 {
24 $clone = clone $this;
25 $clone->loading_animation_on_click = $loading_animation_on_click;
26 return $clone;
27 }
28
32 public function hasLoadingAnimationOnClick() : bool
33 {
34 return $this->loading_animation_on_click;
35 }
36}
An exception for terminatinating execution or to throw for unit testing.
trait LoadingAnimationOnClick
Implements LoadingAnimationOnClick interface.
withLoadingAnimationOnClick(bool $loading_animation_on_click=true)