HTML_Progress
[ class tree: HTML_Progress ] [ index: HTML_Progress ] [ all elements ]
Prev Next
HTML_Progress::isStringPainted
determines whether the progress meter string is painted or not

Synopsis

require_once 'HTML/Progress.php';

bool HTML_Progress::isStringPainted()

Description

This method is used to know whether the progress meter string is painted or not.

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

Note

( HTML_Progress >= 1.0 )

This function can not be called statically.

See

HTML_Progress::setStringPainted

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. printf('is custom string painted ? %s <br/>', $res);
  9.  
  10. $bar->setStringPainted(true);
  11. eval($test);
  12. printf('and now, is custom string painted ? %s', $res);
  13. ?>

Prev Up Next
HTML_Progress::setDM Reference Guide HTML_Progress::setStringPainted

Documentation generated on Sun, 12 Sep 2004 20:23:08 +0200 by phpDocumentor 1.3.0RC3