Revision 795,
626 bytes
checked in by viani, 15 years ago
(diff) |
Ticket #488 - Inclusão do módulo workflow no ramo trunk do repositório Expresso.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * Methods to override: notify($event, $msg) |
---|
4 | * This implements the Observer design pattern defining the Observer class |
---|
5 | * Observer objects can be "attached" to Observable objects to listen for a specific event |
---|
6 | * |
---|
7 | * @abstract |
---|
8 | * @package Galaxia |
---|
9 | * @license http://www.gnu.org/copyleft/gpl.html GPL |
---|
10 | */ |
---|
11 | class Observer { |
---|
12 | ///This will be assigned by an observable object when attaching. |
---|
13 | var $_observerId=''; |
---|
14 | |
---|
15 | /** |
---|
16 | * Empty constructor |
---|
17 | * |
---|
18 | * @param string $event |
---|
19 | * @param string $msg |
---|
20 | * @access protected |
---|
21 | * @return void |
---|
22 | */ |
---|
23 | function notify($event, $msg) { |
---|
24 | // do something... |
---|
25 | } |
---|
26 | } |
---|
27 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.