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

getBorderAttributes Manual

returns attributes list of the progress bar border

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

Synopsis

mixed getBorderAttributes( $asString )

Attributes

Name Type Default
asString boolean false

Description

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

Example

Example below will show you the attributes definition of a progress bar border 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->setBorderAttributes('width=1 color=navy');
  9.  
  10. print '<pre>';
  11. var_dump($ui->getBorderAttributes());       // see output 1.
  12. var_dump($ui->getBorderAttributes(true));   // see output 2.
  13. print '</pre>';
  14. ?>

Output 1.

array(4) {
  ["class"]=>
  string(17) "progressBarBorder"
  ["width"]=>
  string(1) "1"
  ["style"]=>
  string(5) "solid"
  ["color"]=>
  string(4) "navy"
}
   

Output 2.

string(63) " class="progressBarBorder" width="1" style="solid" color="navy""
   

See Also

setBorderAttributes Manual

Prev Up Next
setStringAttributes Manual Reference Guides setBorderAttributes Manual

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