PHP Class TbAlert

See also: http://twitter.github.com/bootstrap/javascript.html#alerts
Inheritance: extends CWidget
Show file Open project: yinhe/yincart

Public Properties

Property Type Description
$alerts the alerts configurations.
$block indicates whether the alert should be an alert block. Defaults to 'true'.
$closeText the close link text. If this is set false, no close link will be displayed.
$events the Javascript event handlers.
$fade indicates whether alerts should use transitions. Defaults to 'true'.
$htmlOptions the HTML attributes for the widget container.
$userComponentId User-component for getting flash messages.

Public Methods

Method Description
init ( ) ### .init()
run ( ) ### .run()

Method Details

init() public method

Initializes the widget.
public init ( )

run() public method

Runs the widget.
public run ( )

Property Details

$alerts public property

the alerts configurations.
public $alerts

$block public property

indicates whether the alert should be an alert block. Defaults to 'true'.
public $block

$closeText public property

the close link text. If this is set false, no close link will be displayed.
public $closeText

$events public property

the Javascript event handlers.
public $events

$fade public property

indicates whether alerts should use transitions. Defaults to 'true'.
public $fade

$htmlOptions public property

the HTML attributes for the widget container.
public $htmlOptions

$userComponentId public property

User-component for getting flash messages.
public $userComponentId