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

setIncrement Manual

defines the progress bar's increment value

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

Synopsis

void setIncrement( $inc )

Attributes

Name Type
inc integer

$inc is a non-zero integer.

Description

The setIncrement() method is used to set the increment value in the mathematical model of the progress bar. The default value is set to +1.

Example

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

See Also

getIncrement Manual

Prev Up Next
getIncrement Manual Reference Guides getValue Manual

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