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

Class: Net_FTP_Observer

Source Location: /Net_FTP-1.4.0/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.0

Copyright:

  • 1997-2008 The PHP Group

Methods


Child classes:

Observer_ProgressUpload
  1. Defines the FTP/Progress Observer

Inherited Variables

Inherited Methods


Class Details

[line 44]
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 61]

Net_FTP_Observer Net_FTP_Observer( )

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

[ Top ]

getId   [line 73]

string getId( )

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

[ Top ]

notify   [line 90]

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 Wed, 09 Dec 2015 23:13:38 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.