HTML_Progress
[ class tree: HTML_Progress ] [ index: HTML_Progress ] [ all elements ]
Prev Next
HTML_Progress_UI::getStyle
returns instance of HTML_CSS object

Synopsis

require_once 'HTML/Progress/UI.php';

string &HTML_Progress_UI::getStyle()

Description

This method is used to retrieve the cascading style sheet required to run properly the progress meter.

Note

( HTML_Progress >= 0.2, HTML_CSS )

This function can not be called statically.

You can also call the HTML_Progress::getStyle method, that will retrieve the same style sheet in plain text (all styles prefixed by the progress meter identification class).

See

HTML_Progress_UI::getProgressAttributes, HTML_Progress_UI::getBorderAttributes, HTML_Progress_UI::getStringAttributes, HTML_Progress_UI::getCellAttributes

Example

Example below will print inline cascading style sheet of a default progress bar.

  1. <?php
  2. require_once 'HTML/Progress.php';
  3.  
  4. $bar = new HTML_Progress();
  5.  
  6. $ui =& $bar->getUI();
  7. $css =& $ui->getStyle();
  8.  
  9. print '<pre>';
  10. echo '<h1>object</h1>';
  11. print_r($css);
  12. echo '<h1>plain text</h1><br/>';
  13. print_r($css->toString());
  14. print '</pre>';
  15. ?>

Prev Up Next
HTML_Progress_UI::setScript Reference Guide HTML_Progress_UI::drawCircleSegments

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