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

Class: HTTP_Request_DownloadListener

Source Location: /HTTP_Request-1.2/docs/download-progress.php

Class Overview

HTTP_Request_Listener
   |
   --HTTP_Request_DownloadListener

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


Author(s):

Version:

  • $Revision: 1.2 $

Methods


Inherited Variables

Inherited Methods

Class: HTTP_Request_Listener

HTTP_Request_Listener::HTTP_Request_Listener()
Constructor, sets the object's identifier
HTTP_Request_Listener::getId()
Returns the listener's identifier
HTTP_Request_Listener::update()
This method is called when Listener is notified of an event

Class Details

[line 21]
This class implements the Observer part of a Subject-Observer design pattern. It listens to the events sent by a HTTP_Request or HTTP_Response instance.


[ Top ]


Method Detail

HTTP_Request_DownloadListener (Constructor)   [line 47]

HTTP_Request_DownloadListener HTTP_Request_DownloadListener( )


[ Top ]

setTarget   [line 57]

void setTarget( string $target)

Opens the target file
  • Throws: PEAR_Error

Parameters:

string   $target     Target file name

[ Top ]

update   [line 66]

void update( mixed &$subject, mixed $event, [mixed $data = null])


Overrides HTTP_Request_Listener::update() (This method is called when Listener is notified of an event)
[ Top ]


Documentation generated on Sat, 1 May 2004 01:04:11 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.