HTML_Progress_UI::getCellCoordinates

HTML_Progress

Prev |  | Next
HTML_Progress_UI::getCellCoordinates returns the cell coordinates for a polygonal shape ## Synopsis require_once 'HTML/Progress/UI.php'; mixed HTML_Progress_UI::getCellCoordinates() ## Description This method is used to retrieve coordinates of progress meter cells (polygonal shape only). ## Note ( HTML_Progress >= 1.2.0RC1 )
| This function can not be called statically.
## See HTML_Progress_UI::setCellCoordinates ## Example This example will print the list of cell coordinates for a square 3x3 progress meter, defined as below:
Cell# | (X,Y)
0 | 0,0
1 | 0,1
2 | 0,2
3 | 1,2
4 | 2,2
5 | 2,1
6 | 2,0
7 | 1,0

    <?php
    require_once 'HTML/Progress.php';

    $bar = new HTML_Progress();

    $ui =& $bar->getUI();
    $ui->setCellCoordinates(3,3);     // square 3x3

    print '<pre>';
    var_dump($ui->getCellCoordinates());
    print '</pre>';
    ?>
Prev | Up | Next
HTML_Progress_UI::setCellAttributes | Reference Guide | HTML_Progress_UI::setCellCoordinates
Documentation generated on Sun, 12 Sep 2004 20:23:23 +0200 by phpDocumentor 1.3.0RC3