getProgressAttributes Manual
returns general attributes list of the progress bar
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.
<?php
require_once ('HTML/Progress.php');
$bar = new HTML_Progress();
$ui =& $bar->getUI();
print '<pre>';
var_dump($ui->getProgressAttributes
());
// see output 1.
var_dump($ui->getProgressAttributes
(true
));
// see output 2.
print '</pre>';
?>
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