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
파일 보기 프로젝트 열기: kartik-v/yii2-social 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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