HTML_Progress
[ class tree: HTML_Progress ] [ index: HTML_Progress ] [ all elements ]
Prev Next
HTML_Progress_UI::getCellAttributes
returns attributes list of the progress bar cells

Synopsis

require_once 'HTML/Progress/UI.php';

mixed HTML_Progress_UI::getCellAttributes( bool $asString = FALSE)

Description

This method is used to retrieve attributes of progress bar cells.

Ouput can be an array or a string depending of the $asString parameter value. Default behavior will return an associative array.

Parameter

    boolean $asString
  • whether to return the attributes list as string.

Throws

Possible PEAR_Error values

Error level Error code Error message Solution
exception HTML_PROGRESS_ERROR_INVALID_INPUT invalid input, parameter #1 "$asString" was expecting "boolean" Fixed the cast of parameter

Note

( HTML_Progress >= 1.0 )

This function can not be called statically.

See

HTML_Progress_UI::setCellAttributes

Example

Example below will show you the cell attributes list of a progress meter in two formats: array (default) and string.

  1. <?php
  2. require_once 'HTML/Progress.php';
  3.  
  4. $bar = new HTML_Progress();
  5. $bar->setBorderPainted(true);
  6.  
  7. $ui =& $bar->getUI();
  8. $ui->setCellAttributes('active-color=#3874B4 inactive-color=#EEEECC width=10');
  9.  
  10. print '<pre>';
  11. var_dump($ui->getCellAttributes());
  12. var_dump($ui->getCellAttributes(true));
  13. print '</pre>';
  14. ?>

Prev Up Next
HTML_Progress_UI::setCellCount Reference Guide HTML_Progress_UI::setCellAttributes

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