PEAR Progress2 logo

HTML_Progress2 : The Definitive Guide

Name

HTML_Progress2::addListener — Attachs a new observer

Synopsis

      require_once 'HTML/Progress2.php';
     
void HTML_Progress2::addListener( $callback);  
mixed   $callback;

Description

Adds a new observer to the Event Dispatcher that will listen for all messages emitted by this HTML_Progress2 instance.

Parameter

mixed $callback

PHP callback that will act as listener

See

see HTML_Progress2::removeListener

Throws

throws HTML_PROGRESS2_ERROR_INVALID_CALLBACK

Note

since 2.0.0

This function can not be called statically.

HTML_Progress2 : The Definitive Guide v 1.0.0 : September 23, 2005