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

setMinimum 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 setMinimum( $min )

Attributes

Name Type
min integer

$min is an integer with a minimum of 0, and maximum limit is given by HTML_Progress_DM::getMaximum().

Description

The setMinimum() method is used to set the minimal value in the mathematical model of the progress bar. If the minimum value is different from previous minimum, all change listeners are notified.

Example

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

See Also

getMinimum Manual

Prev Up Next
getMinimum Manual Reference Guides getMaximum Manual

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