You are here

function HTTP_Request::detach in Flickr API 5

Removes a Listener from the list of listeners

@access public

Parameters

HTTP_Request_Listener listener to detach:

Return value

boolean whether the listener was successfully detached

File

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

Class

HTTP_Request
Class for performing HTTP requests

Code

function detach(&$listener) {
  if (!is_a($listener, 'HTTP_Request_Listener') || !isset($this->_listeners[$listener
    ->getId()])) {
    return false;
  }
  unset($this->_listeners[$listener
    ->getId()]);
  return true;
}