HTML_Progress
[ class tree: HTML_Progress ] [ index: HTML_Progress ] [ all elements ]
Prev Next
HTML_Progress::toHtml
returns an HTML version of the progress meter

Synopsis

require_once 'HTML/Progress.php';

string HTML_Progress::toHtml()

Description

This method is used to retrieve the HTML code of the progress meter.

Note

( HTML_Progress >= 0.2 )

This function can not be called statically.

See

HTML_Progress::toArray

Example

Example below will display a static version of progress meter.

  1. <?php
  2. require_once 'HTML/Progress.php';
  3.  
  4. $bar = new HTML_Progress();
  5. ?>
  6. <head>
  7. <title>toHtml example</title>
  8. <style type="text/css">
  9. <!--
  10. <?php echo $bar->getStyle(); ?>
  11. // -->
  12. </style>
  13. </head>
  14. <body>
  15.  
  16. <h1>Basic Progress bar </h1>
  17. <?php echo $bar->toHtml(); ?>
  18.  
  19. </body>
  20. </html>

Prev Up Next
HTML_Progress::hide Reference Guide HTML_Progress::toArray

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