1 | <?php defined('SYSPATH') OR die('No direct script access.'); |
||
21 | abstract class Kohana_Jam_Event_Data { |
||
22 | |||
23 | /** |
||
24 | * @var string The name of the event |
||
25 | */ |
||
26 | public $event = NULL; |
||
27 | |||
28 | /** |
||
29 | * @var mixed The sender of the event |
||
30 | */ |
||
31 | public $sender = NULL; |
||
32 | |||
33 | /** |
||
34 | * @var args An array of args sent to the event |
||
35 | */ |
||
36 | public $args = array(); |
||
37 | |||
38 | /** |
||
39 | * @var mixed The return value of the event |
||
40 | */ |
||
41 | public $return = NULL; |
||
42 | |||
43 | /** |
||
44 | * @var boolean Whether or not to stop execution of events |
||
45 | */ |
||
46 | public $stop = FALSE; |
||
47 | |||
48 | /** |
||
49 | * Throws all event parameters into the object as public variables |
||
50 | * |
||
51 | * @param array $params |
||
52 | */ |
||
53 | 78 | public function __construct($params) |
|
60 | |||
61 | /** |
||
62 | * Stops execution of the event |
||
63 | * |
||
64 | * @return void |
||
65 | */ |
||
66 | public function stop() |
||
70 | |||
71 | } // End Kohana_Jam_Event_Data |
||
72 |