You are here

function HTTP_Request::_notify in Flickr API 5

Notifies all registered listeners of an event.

@access private

Parameters

string Event name:

mixed Additional data:

See also

HTTP_Request::attach()

2 calls to HTTP_Request::_notify()
HTTP_Request::disconnect in phpFlickr/PEAR/HTTP/Request.php
Disconnect the socket, if connected. Only useful if using Keep-Alive.
HTTP_Request::sendRequest in phpFlickr/PEAR/HTTP/Request.php
Sends the request

File

phpFlickr/PEAR/HTTP/Request.php, line 1082

Class

HTTP_Request
Class for performing HTTP requests

Code

function _notify($event, $data = null) {
  foreach (array_keys($this->_listeners) as $id) {
    $this->_listeners[$id]
      ->update($this, $event, $data);
  }
}