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

getOrientation Manual

returns progress bar orientation type

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

Synopsis

integer getOrientation()

Description

The getOrientation() method is used to retrieve orientation type of a progress bar. It could be horizontal (=1) or vertical (=2) and polygonal (=3), since HTML_Progress 1.2

Example

Example below will give you orientation when progress bar was created, then return the vertical code due to orientation changes.

  1. <?php
  2. require_once ('HTML/Progress.php');
  3.  
  4. $bar = new HTML_Progress();
  5.  
  6. $ui =$bar->getUI();
  7.  
  8. // orientation: 1 = horizontal, 2 = vertical, 3 = polygonal
  9. print('1st orientation = ' $ui->getOrientation());
  10. $ui->setOrientation(HTML_PROGRESS_BAR_VERTICAL);
  11. echo '<br/>';
  12. print('2nd orientation = ' $ui->getOrientation());
  13. ?>

Output will display first "int(1)", then "int(2)".

See Also

setOrientation Manual

Prev Up Next
setFillWay Manual Reference Guides setOrientation Manual

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