Highway to PSR2
[openemr.git] / portal / patient / fwk / libs / verysimple / Phreeze / IObservable.php
bloba795a9edf0620b34d0af2fface655b37bc841e49
1 <?php
2 /** @package verysimple::Phreeze */
4 /**
5 * import supporting libraries
6 */
7 require_once("IObserver.php");
9 /**
10 * IObservable defines an interface for an object that can have listeners attached
12 * @package verysimple::Phreeze
13 * @author VerySimple Inc.
14 * @copyright 1997-2007 VerySimple, Inc.
15 * @license http://www.gnu.org/licenses/lgpl.html LGPL
16 * @version 2.0
18 interface IObservable
20 /**
21 * Registers/attaches an IObserver to this object
23 * @access public
24 * @param IObserver $observer
26 public function AttachObserver($observer);
28 /**
29 * Fires the Observe event on all registered observers
31 * @access public
32 * @param variant $obj
33 * the $obj or message that you want to log/listen to, etc.
34 * @param int $ltype
35 * the type/level
37 public function Observe($obj, $ltype = OBSERVE_INFO);