PEAR::HTML::Progress example: Model
Author: Laurent Laville
Description: how to use the data model class

examples

# Model

$Date: 2005/07/25 10:25:30 $

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

## Introduction

This example requires :

- PEAR::HTML_Progress 1.2.2 or better.

This example will run a horizontal ProgressBar, with limits (min = 0, max = 60) and increment set to 5 in the mathematical model TimerProgress.

The custom string is center aligned at bottom side of the progress bar. Cells have default size and colors.

First introduction of progress handler (user-callback). Function is defined on lines 21 thru 38, and attached on progress bar at line 45.

[Top]

## Render options

Here are options to build this progress bar string (percent text info):

    width  = 170
    height = 20
    valign = bottom
    align  = center

HTML_Progress_UI::setStringAttributes()

[Top]

## Output

### Screenshot

[Top]

## PHP source syntax highlight

Open source listing in a new window.

[Top]

## Play demo

Run the script.

[Top]