PHP Class WhTimeAgo

Author: Antonio Ramirez ([email protected])
Inheritance: extends CWidget
Mostrar archivo Open project: 2amigos/yiiwheels

Public Properties

Property Type Description
$date the date to use the timeago against. If null, the widget will not render the tag, assuming that everything will be handled via the $selector.
$htmlOptions additional HTML attributes to the tag
$language the language
$pluginOptions plugin options
$selector the selector to initialize the widget. Defaults to widget id.
$tagName the HTML tag type

Public Methods

Method Description
init ( ) Widget's initialization method
registerClientScript ( ) Registers required client script for sparklines
run ( ) Widget's run method

Method Details

init() public method

Widget's initialization method
public init ( )

registerClientScript() public method

Registers required client script for sparklines

run() public method

Widget's run method
public run ( )

Property Details

$date public_oe property

the date to use the timeago against. If null, the widget will not render the tag, assuming that everything will be handled via the $selector.
public $date

$htmlOptions public_oe property

additional HTML attributes to the tag
public $htmlOptions

$language public_oe property

the language
public $language

$pluginOptions public_oe property

plugin options
public $pluginOptions

$selector public_oe property

the selector to initialize the widget. Defaults to widget id.
public $selector

$tagName public_oe property

the HTML tag type
public $tagName