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

isIndeterminate Manual

determines whether the progress bar is in determinate mode or not

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

Synopsis

boolean isIndeterminate()

Description

The isIndeterminate() method is used to know whether the progress bar is switched on determinate mode (default) or not (indeterminate).

Example

Look and feel of indeterminate mode used with HTML_Progress_Monitor.

  1. <?php
  2. require_once ('HTML/Progress.php');
  3.  
  4. $bar = new HTML_Progress();
  5. $test "\$res = \$bar->isIndeterminate() ? 'yes':'no';";
  6.  
  7. eval($test);
  8. print('try 1: progress bar in indeterminate mode ? ' $res);
  9. echo '<br/>';
  10.  
  11. $bar->setIndeterminate(true);
  12. eval($test);
  13. print('try 2: progress bar in indeterminate mode ? ' $res);
  14. ?>

See Also

setIndeterminate Manual

Prev Up Next
setModel Manual Reference Guides setIndeterminate Manual

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