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

getProgressAttributes Manual

returns general attributes list of the progress bar

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

Synopsis

mixed getProgressAttributes( $asString )

Attributes

Name Type Default
asString boolean false

Description

The getProgressAttributes() method is used to retrieve general attributes of progress bar. Ouput could be an array or a string.

Example

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

  1. <?php
  2. require_once ('HTML/Progress.php');
  3.  
  4. $bar = new HTML_Progress();
  5.  
  6. $ui =$bar->getUI();
  7.  
  8. print '<pre>';
  9. var_dump($ui->getProgressAttributes());         // see output 1.
  10. var_dump($ui->getProgressAttributes(true));     // see output 2.
  11. print '</pre>';
  12. ?>

Output 1.

array(5) {
  ["class"]=>
  string(11) "progressBar"
  ["background-color"]=>
  string(7) "#FFFFFF"
  ["auto-size"]=>
  bool(true)
  ["width"]=>
  int(172)
  ["height"]=>
  int(24)
}
   

Output 2.

string(85) " class="progressBar" background-color="#FFFFFF" auto-size="1" width="172" height="24""
   

See Also

setProgressAttributes Manual

Prev Up Next
setAnimSpeed Manual Reference Guides setProgressAttributes Manual

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