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

setMaximum Manual

defines the progress bar's minimum value

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

Synopsis

void setMaximum( $max )

Attributes

Name Type
max integer

$max is an integer with a minimum of 0, or given by HTML_Progress_DM::getMinimum(), but as no maximum limit.

Description

The setMaximum() method is used to set the maximal value in the mathematical model of the progress bar. If the maximum value is less than current value, then the current value is set to this maximum.

Example

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

See Also

getMaximum Manual

Prev Up Next
getMaximum Manual Reference Guides getIncrement Manual

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