PHP Класс kartik\social\TwitterPlugin

Usage: echo TwitterPlugin::widget([ 'screenName' => 'TWITTER_SCREEN_NAME', 'type' => TwitterPlugin::MENTION, 'settings' => ['size' => 'large'] ]);
С версии: 1.0
Автор: Kartik Visweswaran ([email protected])
Наследование: extends Widget
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$hashTag the Twitter hash tag (to be used for hashtag button)
$screenName the Twitter screen name (to be used for follow, hashtag & mention buttons)
$settings the Twitter plugin settings
$timelineConfig the additional configuration options for TwitterPlugin::TIMELINE, in case you do not wish to use a user timeline. One of the following settings may be set: - listSlug: string, the list slug and applicable only if you want to use embedded list timeline. @see https://dev.twitter.com/web/embedded-timelines/list - search: string, the search hash tag, if you want to use embedded search timeline. @see https://dev.twitter.com/web/embedded-timelines/search - collectionId: string, the collection identifier, if you want to use embedded collection timeline. @see https://dev.twitter.com/web/embedded-timelines/collection - collectionName: string, the collection name, if you want to use embedded collection timeline. @see https://dev.twitter.com/web/embedded-timelines/collection
$type the Twitter plugin type defaults to Twitter Share (Tweet) button

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

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

Защищенные методы

Метод Описание
registerAssets ( ) Registers the necessary assets

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

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

Initialize the widget
public init ( )

registerAssets() защищенный Метод

Registers the necessary assets
protected registerAssets ( )

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

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

the Twitter hash tag (to be used for hashtag button)
public $hashTag

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

the Twitter screen name (to be used for follow, hashtag & mention buttons)
public $screenName

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

the Twitter plugin settings
public $settings

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

the additional configuration options for TwitterPlugin::TIMELINE, in case you do not wish to use a user timeline. One of the following settings may be set: - listSlug: string, the list slug and applicable only if you want to use embedded list timeline. @see https://dev.twitter.com/web/embedded-timelines/list - search: string, the search hash tag, if you want to use embedded search timeline. @see https://dev.twitter.com/web/embedded-timelines/search - collectionId: string, the collection identifier, if you want to use embedded collection timeline. @see https://dev.twitter.com/web/embedded-timelines/collection - collectionName: string, the collection name, if you want to use embedded collection timeline. @see https://dev.twitter.com/web/embedded-timelines/collection
public $timelineConfig

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

the Twitter plugin type defaults to Twitter Share (Tweet) button
public $type