cvs: pear /Net_FTP/Net/FTP Observer.php

From: Date: Fri, 12 Mar 2004 23:29:55 +0000
Subject: cvs: pear /Net_FTP/Net/FTP Observer.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-17359@lists.php.net to get a copy of this message
toby Fri Mar 12 18:29:55 2004 EDT Added files: /pear/Net_FTP/Net/FTP Observer.php Log: * Fix location and case issues. http://cvs.php.net/co.php/pear/Net_FTP/Net/FTP/Observer.php?r=1.1&p=1 Index: pear/Net_FTP/Net/FTP/Observer.php +++ pear/Net_FTP/Net/FTP/Observer.php <?php // $Id: Observer.php,v 1.1 2004/03/12 23:29:55 toby Exp $ /** * This class implements the Observer part of a Subject-Observer * design pattern. It listens to the events sent by a Net_FTP instance. * This module had many influences from the Log_observer code. * * @version 1.3 * @author Laurent Laville <pear@laurent-laville.org> * @author Tobias Schlitt <toby@php.net> * @author Chuck Hagenbuch <chuck@horde.org> * @access public * @category Networking * @package Net_FTP * @license http://www.php.net/license/3_0.txt PHP License 3.0 * * @example observer_upload.php An example of Net_FTP_Observer implementation. */ class Net_FTP_Observer { /** * Instance-specific unique identification number. * * @var integer * @since 1.3 * @access private */ var $_id; /** * Creates a new basic Net_FTP_Observer instance. * * @since 1.3 * @access public */ function Net_FTP_Observer() { $this->_id = md5(microtime()); } /** * Returns the listener's identifier * * @return string * @since 1.3 * @access public */ function getId() { return $this->_id; } /** * This is a stub method to make sure that Net_FTP_Observer classes do * something when they are notified of a message. The default behavior * is to just do nothing. * You should override this method. * * @param mixed $event A hash describing the net event. * * @since 1.3 * @access public */ function notify($event) { return; } } ?>

« previous php.pear.cvs (#17359) next »