PHP Class TbBadge

See also:
Author: Christoffer Niska ([email protected])
Inheritance: extends CWidget
Show file Open project: yinhe/yincart

Public Properties

Property Type Description
$encodeLabel whether to encode the label.
$htmlOptions the HTML attributes for the widget container.
$label the badge text.
$type the badge type. See TYPE_* constants for list of allowed types.

Public Methods

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

Method Details

init() public method

At the start of widget we collect the attributes for badge tag.
public init ( )

run() public method

Upon completing the badge we write the span tag with collected attributes to document.
public run ( )

Property Details

$encodeLabel public property

whether to encode the label.
public $encodeLabel

$htmlOptions public property

the HTML attributes for the widget container.
public $htmlOptions

$label public property

the badge text.
public $label

$type public property

the badge type. See TYPE_* constants for list of allowed types.
public $type