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

Class: HTTP_Request_Listener

Source Location: /pear/HTTP/Request/Listener.php

Class Overview


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 $

Variables

Methods



Class Details

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



Tags:

author:  Alexey Borzov <avb@php.net>
version:  $Revision: 1.2 $


[ Top ]


Class Variables

$_id =

[line 53]

A listener's identifier


Type:   string


[ Top ]



Class Methods


constructor HTTP_Request_Listener [line 60]

HTTP_Request_Listener HTTP_Request_Listener( )

Constructor, sets the object's identifier



Tags:

access:  public


[ Top ]

method getId [line 72]

string getId( )

Returns the listener's identifier



Tags:

access:  public


[ Top ]

method update [line 87]

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

This method is called when Listener is notified of an event



Tags:

abstract:  
access:  public


Parameters:

object an   &$subject   object the listener is attached to
string   $event   Event name
mixed   $data   Additional data

[ Top ]


Documentation generated on Sun, 08 Jan 2012 17:51:53 +0100 by phpDocumentor 1.4.3