PHP Class kartik\social\VKPlugin

Usage: echo VKPlugin::widget([ 'apiId' => 'FACEBOOK_APP_ID', 'type' => VKPlugin::COMMENT, 'settings' => ['colorscheme' => 'dark'] ]);
Since: 1.0
Author: Kartik Visweswaran ([email protected])
Inheritance: extends Widget
Datei anzeigen Open project: kartik-v/yii2-social

Public Properties

Property Type Description
$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

Protected Properties

Property Type Description
$_initVk whether to initialize VK with the $apiId
$_options the cached options

Public Methods

Method Description
init ( ) Initialize the widget

Protected Methods

Method Description
getPluginParams ( ) : string Gets the plugin parameter settings for JS code
registerAssets ( ) Registers the necessary assets

Method Details

getPluginParams() protected method

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

init() public method

Initialize the widget
public init ( )

registerAssets() protected method

Registers the necessary assets
protected registerAssets ( )

Property Details

$_initVk protected_oe property

whether to initialize VK with the $apiId
protected $_initVk

$_options protected_oe property

the cached options
protected $_options

$apiId public_oe property

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

$config public_oe property

the additional
public $config

$settings public_oe property

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

$type public_oe property

the VKontakte plugin type defaults to VKontakte Comments
public $type