Event.php
1 <?php
2 /**
3  * wCMF - wemove Content Management Framework
4  * Copyright (C) 2005-2020 wemove digital solutions GmbH
5  *
6  * Licensed under the terms of the MIT License.
7  *
8  * See the LICENSE file distributed with this work for
9  * additional information.
10  */
11 namespace wcmf\lib\core;
12 
13 /**
14  * Event is the base class for all events.
15  *
16  * @author ingo herwig <ingo@wemove.com>
17  */
18 abstract class Event {
19 
20  private $isStopped = false;
21 
22  /**
23  * Stop further processing of the event
24  */
25  public function stopPropagation() {
26  $this->isStopped = true;
27  }
28 
29  /**
30  * Check if the event is stopped
31  * @return Boolean
32  */
33  public function isStopped() {
34  return $this->isStopped;
35  }
36 }
37 ?>
isStopped()
Check if the event is stopped.
Definition: Event.php:33
Event is the base class for all events.
Definition: Event.php:18
Core classes.
Definition: namespaces.php:11
stopPropagation()
Stop further processing of the event.
Definition: Event.php:25