HTML_Progress
[ class tree: HTML_Progress ] [ index: HTML_Progress ] [ all elements ]
Prev Next
HTML_Progress::incValue
adds increment to the current progress meter value

Synopsis

require_once 'HTML/Progress.php';

void HTML_Progress::incValue()

Description

This method is used to update the current value of the progress meter.

Note

( HTML_Progress >= 1.0 )

This function can not be called statically.

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

See

HTML_Progress::getValue, HTML_Progress::setValue

Example

  1. <?php
  2. require_once 'HTML/Progress.php';
  3.  
  4. $bar = new HTML_Progress();
  5. $bar->setIncrement(5);
  6.  
  7. $bar->incValue();
  8. printf('value after 1st update = %d <br/>', $bar->getValue());
  9.  
  10. $dm =& $bar->getDM();
  11. $dm->incValue();
  12. printf('value after 2nd update = %d <br/>', $dm->getValue());
  13. ?>

Prev Up Next
HTML_Progress::setValue Reference Guide HTML_Progress::getPercentComplete

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