PEAR Progress2 logo

HTML_Progress2 : The Definitive Guide

Name

HTML_Progress2::setOrientation — Sets orientation of the progress bar

Synopsis

      require_once 'HTML/Progress2.php';
     
void HTML_Progress2::setOrientation( $orient);  
integer   $orient;

Description

There are only two distinct orientations for a progress bar: horizontal and vertical, identified by two constants: HTML_PROGRESS2_BAR_HORIZONTAL and HTML_PROGRESS2_BAR_VERTICAL. While circle and other polygonal progress meter are identified by two other constants: HTML_PROGRESS2_CIRCLE and HTML_PROGRESS2_POLYGONAL. The default orientation is horizontal.

Parameter

integer $orient

Orientation (horizontal or vertical)

See

see HTML_Progress2::getOrientation

Throws

throws HTML_PROGRESS2_ERROR_INVALID_INPUT

Note

since 2.0.0

This function can not be called statically.

HTML_Progress2 : The Definitive Guide v 2.4.0 : April 20, 2007