HTML_Progress
[ class tree: HTML_Progress ] [ index: HTML_Progress ] [ all elements ]
Prev Next
HTML_Progress::getPercentComplete
returns the percent complete of the progress meter

Synopsis

require_once 'HTML/Progress.php';

float HTML_Progress::getPercentComplete()

Description

This method is used to retrieve degree of completion from 0.00 to 1.00

Note

( HTML_Progress >= 1.0 )

This function can not be called statically.

This method is also a wrapper for HTML_Progress_DM::getPercentComplete.

See

HTML_Progress::getValue, HTML_Progress::getMaximum

Example

  1. <?php
  2. require_once 'HTML/Progress.php';
  3.  
  4. $bar = new HTML_Progress();
  5. $bar->setValue(18);
  6.  
  7. printf('direct way: progress completed at %f <br/>', $bar->getPercentComplete());
  8.  
  9. $dm =& $bar->getDM();
  10. printf('another way: progress completed at %f <br/>', $dm->getPercentComplete());
  11. ?>

Prev Up Next
HTML_Progress::incValue Reference Guide HTML_Progress_UI::getOrientation

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