PHP Class WhTimeAgo

Author: Antonio Ramirez ([email protected])
Inheritance: extends CWidget
Show file 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 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 property

additional HTML attributes to the tag
public $htmlOptions

$language public property

the language
public $language

$pluginOptions public property

plugin options
public $pluginOptions

$selector public property

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

$tagName public property

the HTML tag type
public $tagName