HTML_Progress
[ class tree: HTML_Progress ] [ index: HTML_Progress ] [ all elements ]
Prev Next
HTML_Progress_UI::getOrientation
returns the progress meter orientation

Synopsis

require_once 'HTML/Progress/UI.php';

int HTML_Progress_UI::getOrientation()

Description

This method is used to retrieve orientation of a progress meter.

Note

( HTML_Progress >= 1.0 )

This function can not be called statically.

See

HTML_Progress_UI::setOrientation

Example

Example below will give you the orientation when progress bar was created, then returns 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. printf('1st orientation = %d <br/>', $ui->getOrientation());
  10.  
  11. $ui->setOrientation(HTML_PROGRESS_BAR_VERTICAL);
  12. printf('2nd orientation = %d <br/>', $ui->getOrientation());
  13. ?>

Prev Up Next
HTML_Progress::getPercentComplete Reference Guide HTML_Progress_UI::setOrientation

Documentation generated on Sun, 12 Sep 2004 20:23:19 +0200 by phpDocumentor 1.3.0RC3