PEAR Progress2 logo

HTML_Progress2 : The Definitive Guide

Chapter 19. API - Application Programming Interface

Table of Contents

Error Handler
Listener
Data Handler
Increment
Minimum
Maximum
Current value
Go to next step
Graphical Handler
Orientation
Fill option
Cells
Border
Frame
Labels
Background color and size
JavaScript handler
Circle/Ellipse
Common functions
Identification
Animation speed
Stylesheet
Rendering
Process

Error Handler

HTML_Progress2::raiseError - A basic wrapper around the default PEAR_Error object
HTML_Progress2::hasErrors - Determine whether there are errors into the HTML_Progress2 stack
HTML_Progress2::getError - Pop an error off of the HTML_Progress2 stack

Unless you want to create extends of HTML_Progress2 class and check new function arguments with raiseError() method, you should only use hasErrors() and getError() methods to catch any API error (wrong programming).

HTML_Progress2 : The Definitive Guide v 2.4.0 : April 20, 2007