PEAR Progress2 logo

HTML_Progress2 : The Definitive Guide



Name

HTML_Progress2::setCellCoordinates - Sets coordinates of each cell for a polygonal progress meter

Synopsis

      require_once 'HTML/Progress2.php';
     
void HTML_Progress2::setCellCoordinates( $xgrid,
$ygrid,
$coord = array());
integer $xgrid;
integer $ygrid;
array $coord = array();

Description

A polygonal progress meter is defined by its size (width, height) and its cells coordinates (array of couple x,y screen coordinates).

Parameter

integer $xgrid

The grid width in cell size

integer $ygrid

The grid height in cell size

array $coord

(optional) Coordinates (x,y) in the grid, of each cell

See

see HTML_Progress2::getCellCoordinates

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.2.0 : January 2, 2007