Blame view

src/vendor/1.2.5/Phalcon/Events/Event.php 1.47 KB
ef60cd4d   Administrator   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
  <?php 
  
  namespace Phalcon\Events {
  
  	/**
  	 * Phalcon\Events\Event
  	 *
  	 * This class offers contextual information of a fired event in the EventsManager
  	 */
  	
  	class Event {
  
  		protected $_type;
  
  		protected $_source;
  
  		protected $_data;
  
  		protected $_stopped;
  
  		protected $_cancelable;
  
  		/**
  		 * \Phalcon\Events\Event constructor
  		 *
  		 * @param string $type
  		 * @param object $source
  		 * @param mixed $data
  		 * @param boolean $cancelable
  		 */
  		public function __construct($type, $source, $data=null, $cancelable=null){ }
  
  
  		/**
  		 * Set the event's type
  		 *
  		 * @param string $eventType
  		 */
  		public function setType($eventType){ }
  
  
  		/**
  		 * Returns the event's type
  		 *
  		 * @return string
  		 */
  		public function getType(){ }
  
  
  		/**
  		 * Returns the event's source
  		 *
  		 * @return object
  		 */
  		public function getSource(){ }
  
  
  		/**
  		 * Set the event's data
  		 *
  		 * @param string $data
  		 */
  		public function setData($data){ }
  
  
  		/**
  		 * Returns the event's data
  		 *
  		 * @return mixed
  		 */
  		public function getData(){ }
  
  
  		/**
  		 * Sets if the event is cancelable
  		 *
  		 * @param boolean $cancelable
  		 */
  		public function setCancelable($cancelable){ }
  
  
  		/**
  		 * Check whether the event is cancelable
  		 *
  		 * @return boolean
  		 */
  		public function getCancelable(){ }
  
  
  		/**
  		 * Stops the event preventing propagation
  		 */
  		public function stop(){ }
  
  
  		/**
  		 * Check whether the event is currently stopped
  		 */
  		public function isStopped(){ }
  
  	}
  }