source: branches/1.2/workflow/inc/engine/src/common/Observer.php @ 1349

Revision 1349, 626 bytes checked in by niltonneto, 15 years ago (diff)

Ticket #561 - Inclusão do módulo Workflow faltante nessa versão.

  • 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 */
11class 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.