PHP Class Prado\Web\UI\WebControls\TView

TView is a container for a group of controls. TView must be contained within a {@link TMultiView} control in which only one view can be active at one time. To activate a view, set {@link setActive Active} to true. When a view is activated, it raises {@link onActivate OnActivate} event; and when a view is deactivated, it raises {@link onDeactivate OnDeactivate}.
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends Prado\Web\UI\TControl
Mostra file Open project: pradosoft/prado

Public Methods

Method Description
getActive ( ) : boolean
getVisible ( $checkParents = true ) : boolean
onActivate ( $param ) Raises OnActivate event.
onDeactivate ( $param ) Raises OnDeactivate event.
setActive ( $value )
setVisible ( $value )

Method Details

getActive() public method

public getActive ( ) : boolean
return boolean whether this view is active. Defaults to false.

getVisible() public method

public getVisible ( $checkParents = true ) : boolean
return boolean whether this view is visible. The view is visible if it is active and its parent is visible.

onActivate() public method

Raises OnActivate event.
public onActivate ( $param )

onDeactivate() public method

Raises OnDeactivate event.
public onDeactivate ( $param )

setActive() public method

public setActive ( $value )

setVisible() public method

public setVisible ( $value )