Xoad 0.5.0.0 > Classes / Observer.class.php

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Xoad 0.5.0.0

Download:
xoad-0.5.0.0.zip

Category:
Development Tools

Archive Content:

Xoad 0.5.0.0

Xoad 0.5.0.0 > Classes

Xoad 0.5.0.0 > Classes > Events > Storage

Xoad 0.5.0.0 > Classes > Events

Xoad 0.5.0.0 > Classes

Xoad 0.5.0.0 > Config

Xoad 0.5.0.0

Xoad 0.5.0.0 > Docs > Source

Xoad 0.5.0.0 > Docs > Source > Media

Xoad 0.5.0.0 > Docs > Source > Media > Images

Xoad 0.5.0.0 > Docs > Source > Media > Lib

Xoad 0.5.0.0 > Docs > Source > Media

Xoad 0.5.0.0 > Docs > Source

Xoad 0.5.0.0 > Docs > Source > XOAD > XOAD Cache

Xoad 0.5.0.0 > Docs > Source > XOAD

Xoad 0.5.0.0 > Docs > Source > XOAD > XOAD Events

Xoad 0.5.0.0 > Docs > Source > XOAD > XOAD HTML

Xoad 0.5.0.0 > Docs > Source > XOAD

Xoad 0.5.0.0 > Docs > Source > Filesource

Xoad 0.5.0.0 > Docs > Tutorials

Xoad 0.5.0.0 > Docs > Tutorials > Images

Xoad 0.5.0.0 > Docs > Tutorials > Style

Xoad 0.5.0.0 > Examples > Basic

Xoad 0.5.0.0 > Examples > Chat

Xoad 0.5.0.0 > Examples > Chat > Images

Xoad 0.5.0.0 > Examples > Chat

Xoad 0.5.0.0 > Examples > Chat > Var

Xoad 0.5.0.0 > Examples > ChatAdvanced

Xoad 0.5.0.0 > Examples > ChatAdvanced > Images > Default

Xoad 0.5.0.0 > Examples > ChatAdvanced

Xoad 0.5.0.0 > Examples > ChatAdvanced > Smilies

Xoad 0.5.0.0 > Examples > ChatAdvanced > Style

Xoad 0.5.0.0 > Examples > Events

Xoad 0.5.0.0 > Examples > Exam

Xoad 0.5.0.0 > Examples > Explorer

Xoad 0.5.0.0 > Examples > Explorer > Images

Xoad 0.5.0.0 > Examples > Explorer

Xoad 0.5.0.0 > Examples > Explorer > Style

Xoad 0.5.0.0 > Examples > Forms

Xoad 0.5.0.0 > Examples > Html > Content

Xoad 0.5.0.0 > Examples > Html

Xoad 0.5.0.0 > Extensions > Cache

Xoad 0.5.0.0 > Extensions > Cache > Classes

Xoad 0.5.0.0 > Extensions > Cache > Classes > Storage

Xoad 0.5.0.0 > Extensions > Cache > Classes

Xoad 0.5.0.0 > Extensions > Html > Classes > DOM

Xoad 0.5.0.0 > Extensions > Html > Classes

Xoad 0.5.0.0 > Extensions > Html

Xoad 0.5.0.0 > Extensions > Html > Js

Xoad 0.5.0.0

Xoad 0.5.0.0 > Js

Xoad 0.5.0.0

Xoad 0.5.0.0 > Tests

Xoad 0.5.0.0

Observer.class.php:


<?php
/**
 * XOAD Observer file.
 *
 * <p>This file defines the {@link XOAD_Observer} Class.</p>
 * <p>Example:</p>
 * <code>
 * <?php
 *
 * require_once('xoad.php');
 *
 * class CallbackObserver extends XOAD_Observer
 * {
 *     function updateObserver($event,  $arg)
 *     {
 *         print $event . ' called.';
 *     }
 * }
 *
 * XOAD_Server::addObserver(new CallbackObserver());
 *
 * ...
 *
 * ?>
 * </code>
 *
 * @author    Stanimir Angeloff
 *
 * @package    XOAD
 *
 * @version    0.5.0.0
 *
 */

/**
 * XOAD Observer Class.
 *
 * <p>To observe XOAD events you must define your own
 * classes that extend the {@link XOAD_Observer} class.</p>
 * <p>See {@link XOAD_Observer::updateObserver} for
 * more information.</p>
 * <p>Example:</p>
 * <code>
 * <?php
 *
 * require_once('xoad.php');
 *
 * class CallbackObserver extends XOAD_Observer
 * {
 *     function updateObserver($event,  $arg)
 *     {
 *         print $event . ' called.';
 *     }
 * }
 *
 * XOAD_Server::addObserver(new CallbackObserver());
 *
 * ...
 *
 * ?>
 * </code>
 *
 * @author        Stanimir Angeloff
 *
 * @package        XOAD
 *
 * @version        0.5.0.0
 *
 */
class XOAD_Observer
{
    
/**
     * This method is called when {@link XOAD_Observable::notifyObservers}
     * is called.
     *
     * <p>You should override this method to accept two parameters - the
     * event name and the event argument.</p>
     * <p>If {@link XOAD_Observable::notifyObservers} is called without
     * parameters the event name is 'default'.</p>
     * <p>You should also always return a boolean value that indicates
     * the result of the event.</p>
     *
     * @access    public
     *
     * @return    bool    Always true.
     *
     */
    
function updateObserver()
    {
        return 
true;
    }
}

?>


Other Development Tools Scripts:

WebMaster Resources Home

©RingsWorld.com