PHP Class kartik\social\GooglePlugin

Usage: echo GooglePlugin::widget([ 'type' => GooglePlugin::SHARE ]);
Since: 1.0
Author: Kartik Visweswaran ([email protected])
Inheritance: extends Widget
Show file Open project: kartik-v/yii2-social Class Usage Examples

Public Properties

Property Type Description
$clientId the Google Plus Client ID.
$communityId the Google Plus Community ID.
$pageId the Google Page ID.
$profileId the Google Plus Profile ID.
$signinOptions the HTML attributes for the signin container
$type the Google plugin type defaults to Google Plus One

Public Methods

Method Description
init ( ) Initialize the widget

Protected Methods

Method Description
registerAssets ( ) Registers the necessary assets
setPluginOptions ( $convertLowerCase = true ) Sets the options for the Google plugin

Method Details

init() public method

Initialize the widget
public init ( )

registerAssets() protected method

Registers the necessary assets
protected registerAssets ( )

setPluginOptions() protected method

Sets the options for the Google plugin
protected setPluginOptions ( $convertLowerCase = true )

Property Details

$clientId public property

the Google Plus Client ID.
public $clientId

$communityId public property

the Google Plus Community ID.
public $communityId

$pageId public property

the Google Page ID.
public $pageId

$profileId public property

the Google Plus Profile ID.
public $profileId

$signinOptions public property

the HTML attributes for the signin container
public $signinOptions

$type public property

the Google plugin type defaults to Google Plus One
public $type