event.php in Defender Security – Malware Scanner, Login Security & Firewall 3.0.1, at framework/component/event.php
| 1 | <?php |
| 2 | /** |
| 3 | * Author: Hoang Ngo |
| 4 | * |
| 5 | * @package Framework |
| 6 | */ |
| 7 | |
| 8 | namespace Calotes\Component; |
| 9 | |
| 10 | use Calotes\Base\Base; |
| 11 | |
| 12 | /** |
| 13 | * Every event class need to extend this |
| 14 | * |
| 15 | * Class Event |
| 16 | * |
| 17 | * @package Calotes\Base |
| 18 | */ |
| 19 | class Event extends Base { |
| 20 | |
| 21 | /** |
| 22 | * Contains the class |
| 23 | * |
| 24 | * @var object |
| 25 | */ |
| 26 | public $sender; |
| 27 | |
| 28 | /** |
| 29 | * A flag to say if this event handled or not |
| 30 | * |
| 31 | * @var bool |
| 32 | */ |
| 33 | public $handled = false; |
| 34 | |
| 35 | /** |
| 36 | * Passed args for this event |
| 37 | * |
| 38 | * @var mixed |
| 39 | */ |
| 40 | public $message = null; |
| 41 | |
| 42 | /** |
| 43 | * Use for return event result |
| 44 | * |
| 45 | * @var null |
| 46 | */ |
| 47 | public $result = null; |
| 48 | } |
| 49 |