PEAR::HTML::Progress example: Simple ProgressBar Observer
Author: Laurent Laville

examples

# Simple ProgressBar Observer

$Date: 2005/07/25 12:27:28 $

- Introduction
- Render options
- Output
- PHP source syntax highlight
- Play demo

## Introduction

This example requires :

- PEAR::HTML_Progress 1.2.2 or better (see source at lines 11, 12).

This example will run a ProgressBar with a custom class observer mechanism. Output could be send to screen or on flat file 'observer_complex.log'.

Here are the contents of that file : incValue = 5 incValue = 10 incValue = 15 incValue = 20 incValue = 25 incValue = 30 incValue = 35 incValue = 40 incValue = 45 incValue = 50 incValue = 55 incValue = 60 incValue = 65 incValue = 70 incValue = 75 incValue = 80 incValue = 85 incValue = 90 incValue = 95 incValue = 100

[Top]

## Render options

    speed = 50 is set at line 46

HTML_Progress::setAnimSpeed()

    increment = 5 is set at line 47

HTML_Progress::setIncrement()

[Top]

## Output

### Screenshot

[Top]

## PHP source syntax highlight

Open source listing in a new window.

[Top]

## Play demo

Run the screen version.

Run the file version.

[Top]