PHP Класс WhTimeAgo

Автор: Antonio Ramirez ([email protected])
Наследование: extends CWidget
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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

Открытые методы

Метод Описание
init ( ) Widget's initialization method
registerClientScript ( ) Registers required client script for sparklines
run ( ) Widget's run method

Описание методов

init() публичный Метод

Widget's initialization method
public init ( )

registerClientScript() публичный Метод

Registers required client script for sparklines

run() публичный Метод

Widget's run method
public run ( )

Описание свойств

$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.
public $date

$htmlOptions публичное свойство

additional HTML attributes to the tag
public $htmlOptions

$language публичное свойство

the language
public $language

$pluginOptions публичное свойство

plugin options
public $pluginOptions

$selector публичное свойство

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

$tagName публичное свойство

the HTML tag type
public $tagName