PEAR Progress2 logo

HTML_Progress2 : The Definitive Guide

Name

HTML_Progress2::setCellAttributes — Sets cell attributes values

Synopsis

      require_once 'HTML/Progress2.php';
     
void HTML_Progress2::setCellAttributes( $attributes,  
  $cell = NULL);  
mixed   $attributes;
int   $cell = NULL;

Description

Sets cell attributes for all cells (default) or a specific an existing cell.

Defaults are:

  • Common :

    • id = pcel%01s

    • class = cell

    • spacing = 2

    • active-color = #006600

    • inactive-color = #CCCCCC

    • font-family = Courier, Verdana

    • font-size = lowest value from cell width, cell height, and font size

    • color = #000000

    • background-color = #FFFFFF

    • background-image = none

    • background-repeat = no-repeat

    • background-position = top left

    • Horizontal Bar :

      • width = 15

      • height = 20

    • Vertical Bar :

      • width = 20

      • height = 15

Parameter

mixed $attributes

Associative array or string of HTML tag attributes

integer $cell

(optional) Cell index

See

see HTML_Progress2::getCellAttributes

Throws

throws HTML_PROGRESS2_ERROR_INVALID_INPUT

Note

since 2.0.0

This function can not be called statically.

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