PHP 클래스 kartik\social\VKPlugin

Usage: echo VKPlugin::widget([ 'apiId' => 'FACEBOOK_APP_ID', 'type' => VKPlugin::COMMENT, 'settings' => ['colorscheme' => 'dark'] ]);
부터: 1.0
저자: Kartik Visweswaran ([email protected])
상속: extends Widget
파일 보기 프로젝트 열기: kartik-v/yii2-social

공개 프로퍼티들

프로퍼티 타입 설명
$apiId the VKontakte Application ID. This is mandatory.
$config the additional
$settings the VKontakte plugin settings that vary based on type.
$type the VKontakte plugin type defaults to VKontakte Comments

보호된 프로퍼티들

프로퍼티 타입 설명
$_initVk whether to initialize VK with the $apiId
$_options the cached options

공개 메소드들

메소드 설명
init ( ) Initialize the widget

보호된 메소드들

메소드 설명
getPluginParams ( ) : string Gets the plugin parameter settings for JS code
registerAssets ( ) Registers the necessary assets

메소드 상세

getPluginParams() 보호된 메소드

Gets the plugin parameter settings for JS code
protected getPluginParams ( ) : string
리턴 string

init() 공개 메소드

Initialize the widget
public init ( )

registerAssets() 보호된 메소드

Registers the necessary assets
protected registerAssets ( )

프로퍼티 상세

$_initVk 보호되어 있는 프로퍼티

whether to initialize VK with the $apiId
protected $_initVk

$_options 보호되어 있는 프로퍼티

the cached options
protected $_options

$apiId 공개적으로 프로퍼티

the VKontakte Application ID. This is mandatory.
public $apiId

$config 공개적으로 프로퍼티

the additional
public $config

$settings 공개적으로 프로퍼티

the VKontakte plugin settings that vary based on type.
public $settings

$type 공개적으로 프로퍼티

the VKontakte plugin type defaults to VKontakte Comments
public $type