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

isBorderPainted Manual

determines whether the progress bar border is painted or not

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

Synopsis

boolean isBorderPainted()

Description

The isBorderPainted() method is used to know whether the progress bar border is painted or not. The default is FALSE.

Example

Example below will produced a progress bar with a solid red border.

  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(array(
  9.         'width' => 2,
  10.         'style' => 'solid',
  11.         'color' => 'red'
  12.         ));
  13. ?>
  14. <!DOCTYPE html
  15.     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  16.     "http://www.w3c.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  17.  
  18. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  19. <head>
  20. <title>isBorderPainted example </title>
  21. <style type="text/css">
  22. <!--
  23. <?php echo $bar->getStyle()?>
  24. // -->
  25. </style>
  26. <body>
  27.  
  28. <?php 
  29.  
  30. echo $bar->toHtml()
  31. $test "\$res = \$bar->isBorderPainted() ? 'yes':'no';";
  32.  
  33. eval($test);
  34. print('border is painted ? ' $res);
  35. ?>
  36.  
  37. </body>
  38. </html>

See Also

setBorderPainted Manual

Prev Up Next
setStringPainted Manual Reference Guides setBorderPainted Manual

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