Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / EventManager / EventInterface.php
blob7974f6e9ac8aaf8726517f8fb8083a8c19d89a13
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\EventManager;
12 use ArrayAccess;
14 /**
15 * Representation of an event
17 interface EventInterface
19 /**
20 * Get event name
22 * @return string
24 public function getName();
26 /**
27 * Get target/context from which event was triggered
29 * @return null|string|object
31 public function getTarget();
33 /**
34 * Get parameters passed to the event
36 * @return array|ArrayAccess
38 public function getParams();
40 /**
41 * Get a single parameter by name
43 * @param string $name
44 * @param mixed $default Default value to return if parameter does not exist
45 * @return mixed
47 public function getParam($name, $default = null);
49 /**
50 * Set the event name
52 * @param string $name
53 * @return void
55 public function setName($name);
57 /**
58 * Set the event target/context
60 * @param null|string|object $target
61 * @return void
63 public function setTarget($target);
65 /**
66 * Set event parameters
68 * @param string $params
69 * @return void
71 public function setParams($params);
73 /**
74 * Set a single parameter by key
76 * @param string $name
77 * @param mixed $value
78 * @return void
80 public function setParam($name, $value);
82 /**
83 * Indicate whether or not the parent EventManagerInterface should stop propagating events
85 * @param bool $flag
86 * @return void
88 public function stopPropagation($flag = true);
90 /**
91 * Has this event indicated event propagation should stop?
93 * @return bool
95 public function propagationIsStopped();