HTML_Progress
[ class tree: HTML_Progress ] [ index: HTML_Progress ] [ all elements ]
Prev Next

incValue Manual

add increment to the current progress bar's value

by by Laurent Laville
mailto:pear@laurent-laville.org
November 2003, Laurent Laville
(HTML_Progress 1.0+)

Synopsis

void incValue()

Description

The incValue() method is used to update the current value of the progress bar.

Example

  1. <?php
  2. require_once ('HTML/Progress.php');
  3.  
  4. $bar = new HTML_Progress();
  5. $bar->setIncrement(5);
  6.  
  7. // direct way
  8. $bar->incValue();
  9. print('value after 1st update = ' $bar->getValue());
  10. echo '<br/>';
  11.  
  12. // another way
  13. $dm =$bar->getDM();
  14. $dm->incValue();
  15. print('value after 2nd update = ' $bar->getValue());
  16. ?>

See Also

getValue Manual, setValue Manual

Prev Up Next
setValue Manual Reference Guides getPercentComplete Manual

Documentation generated on Mon, 11 Mar 2019 13:52:36 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.