HTML_Progress
[ class tree: HTML_Progress ] [ index: HTML_Progress ] [ all elements ]
Prev Next
HTML_Progress_UI::getCellCount
returns cell count into a progress bar

Synopsis

require_once 'HTML/Progress/UI.php';

int HTML_Progress_UI::getCellCount()

Description

This method is used to retrieve the number of cell defined into a progress bar.

A basic progress bar has ten cells by default.

Note

( HTML_Progress >= 1.0 )

This function can not be called statically.

See

HTML_Progress_UI::setCellCount

Example

Example below will give you the number of cell defined in this progress bar:

  1. <?php
  2. require_once 'HTML/Progress.php';
  3.  
  4. $bar = new HTML_Progress();
  5.  
  6. $ui =& $bar->getUI();
  7. $ui->setCellCount(5);
  8.  
  9. printf('this progress bar has %d cell(s)', $ui->getCellCount());
  10. ?>

Prev Up Next
HTML_Progress_UI::setFillWay Reference Guide HTML_Progress_UI::setCellCount

Documentation generated on Sun, 12 Sep 2004 20:23:21 +0200 by phpDocumentor 1.3.0RC3