HTML_Progress_UI::getOrientation

HTML_Progress

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.

    <?php
    require_once 'HTML/Progress.php';

    $bar = new HTML_Progress();

    $ui =& $bar->getUI();

    // orientation: 1 = horizontal, 2 = vertical, 3 = polygonal
    printf('1st orientation = %d <br/>', $ui->getOrientation());

    $ui->setOrientation(HTML_PROGRESS_BAR_VERTICAL);
    printf('2nd orientation = %d <br/>', $ui->getOrientation());
    ?>
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