PHP Класс kartik\social\GithubPlugin

Usage: echo GithubPlugin::widget([ 'type' => GithubPlugin::WATCH, 'settings' => ['user' => 'GITHUB_USER', 'repo' => 'GITHUB_REPO'] ]);
См. также: http://ghbtns.com/
С версии: 1.0
Автор: Kartik Visweswaran ([email protected])
Наследование: extends Widget
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$options the HTML attributes for the plugin container.
$settings the social plugin settings. The following attributes are recognized: - repo: string the Github repository name. This is mandatory. - user: string the Github username that owns the repo. This is mandatory. - count: boolean whether to display the watchers or forks count. - size: the flag for using a larger button. The larger button option is 'large'.
$type the type of button. One of 'watch', 'fork', 'follow'. This is mandatory.

Защищенные свойства (Protected)

Свойство Тип Описание
$validPlugins the valid plugins

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

Метод Описание
init ( ) Initialize the widget

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

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

Initialize the widget
public init ( )

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

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

the HTML attributes for the plugin container.
public $options

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

the social plugin settings. The following attributes are recognized: - repo: string the Github repository name. This is mandatory. - user: string the Github username that owns the repo. This is mandatory. - count: boolean whether to display the watchers or forks count. - size: the flag for using a larger button. The larger button option is 'large'.
public $settings

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

the type of button. One of 'watch', 'fork', 'follow'. This is mandatory.
public $type

$validPlugins защищенное свойство

the valid plugins
protected $validPlugins