getOrientation Manual
returns progress bar orientation type
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.
<?php
require_once ('HTML/Progress.php');
$bar = new HTML_Progress();
$ui =& $bar->getUI();
// orientation: 1 = horizontal, 2 = vertical, 3 = polygonal
print('1st orientation = ' . $ui->getOrientation());
echo '<br/>';
print('2nd orientation = ' . $ui->getOrientation());
?>
Output will display first "int(1)", then "int(2)".
See Also
setOrientation Manual