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

Class: HTTP_Request_DownloadListener

Source Location: /HTTP_Request-1.3.0/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.
  • Author: Alexey Borzov <avb@php.net>
  • Version: $Revision: 1.2 $


[ 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( &$subject, $event, [ $data = null])


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

Parameters:

   &$subject   — 
   $event   — 
   $data   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:10:28 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.