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

isStringPainted Manual

determines whether the progress bar string is painted or not

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

Synopsis

boolean isStringPainted()

Description

The isStringPainted() method is used to know whether the progress bar string is painted or not.

If returns value is FALSE, the progress bar displays the value returned by HTML_Progress::getPercentComplete() method formatted as a percent such as 33%.

Example

  1. <?php
  2. require_once ('HTML/Progress.php');
  3.  
  4. $bar = new HTML_Progress();
  5. $test "\$res = \$bar->isStringPainted() ? 'yes':'no';";
  6.  
  7. eval($test);
  8. print ('is custom string painted ? '$res);
  9. echo '<br/>';
  10.  
  11. $bar->setStringPainted(true);
  12. eval($test);
  13. print ('decide to paint custom string : '$res);
  14. ?>

See Also

setStringPainted Manual

Prev Up Next
setString Manual Reference Guides setStringPainted Manual

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