FTP
[ class tree: FTP ] [ index: FTP ] [ all elements ]

Class: Net_FTP_Observer

Source Location: /Net_FTP-1.4.0a2/Net/FTP/Observer.php

Class Overview


This class implements the Observer part of a Subject-Observer design pattern. It listens to the events sent by a Net_FTP instance.


Author(s):

Version:

  • Release: 1.4.0a2

Copyright:

  • 1997-2008 The PHP Group

Methods


Child classes:

Observer_ProgressUpload
  1. Defines the FTP/Progress Observer

Inherited Variables

Inherited Methods


Class Details

[line 50]
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.



[ Top ]


Method Detail

Net_FTP_Observer (Constructor)   [line 67]

Net_FTP_Observer Net_FTP_Observer( )

Creates a new basic Net_FTP_Observer instance.
  • Since: 1.3.0
  • Access: public

[ Top ]

getId   [line 79]

string getId( )

Returns the listener's identifier
  • Return: The listener's identifier
  • Since: 1.3.0
  • Access: public

[ Top ]

notify   [line 96]

void notify( mixed $event)

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.

  • Since: 1.3.0
  • Access: public

Overridden in child classes as:

Observer_ProgressUpload::notify()
Notification method

Parameters:

mixed   $event     A hash describing the net event.

[ Top ]


Documentation generated on Mon, 19 May 2008 16:00:14 -0400 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.