PEAR Progress2 logo

HTML_Progress2 : The Definitive Guide

Name

HTML_Progress2::setProgressAttributes — Sets the progress background attributes values

Synopsis

      require_once 'HTML/Progress2.php';
     
void HTML_Progress2::setProgressAttributes( $attributes);  
mixed   $attributes;

Description

Background attributes are color and size, with default values:

  • background-color = #FFFFFF

  • background-image = none

  • background-repeat = no-repeat

  • background-position = top left

  • Horizontal Bar :

    • width = (cell_count * (cell_width + cell_spacing)) + cell_spacing

    • height = cell_height + (2 * cell_spacing)

  • Vertical Bar :

    • width = cell_width + (2 * cell_spacing)

    • height = (cell_count * (cell_height + cell_spacing)) + cell_spacing

Parameter

mixed $attributes

Associative array or string of HTML tag attributes

Throws

throws no exceptions thrown

See

see HTML_Progress2::getProgressAttributes

Note

since 2.0.0

This function can not be called statically.

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