PHP Class GooglePlusPlugin, vanilla

Copyright (c) 2011-2013 Gina Trapani LICENSE: This file is part of ThinkUp (http://thinkup.com). ThinkUp is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. ThinkUp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with ThinkUp. If not, see .
Inheritance: extends Plugin, implements CrawlerPlugin, implements DashboardPlugin, implements PostDetailPlugin
ファイルを表示 Open project: vanilla/vanilla Class Usage Examples

Protected Properties

Property Type Description
$_AccessToken string

Public Methods

Method Description
accessToken ( boolean $NewValue = false ) : boolean | mixed | null
api ( $Path, array $Post = [] ) : mixed
authenticationProviderModel_calculateGooglePlus_handler ( object $sender, array $args ) Calculate the final sign in and register urls for google+.
authorizeUri ( array $State = [] ) : string
base_AfterReactions_handler ( $Sender, $Args ) Add 'Google+' option to the row.
base_beforeSignInButton_handler ( $Sender, $Args )
base_connectData_handler ( EntryController $Sender, array $Args )
base_getConnections_handler ( $Sender, $Args )
base_signInIcons_handler ( $Sender, $Args )
curl ( $Url, string $Method = 'GET', array $Data = [] ) : mixed
entryController_googlePlus_create ( EntryController $Sender, string $Code = false, string $State = false )
entryController_overrideSignIn_handler ( EntryController $Sender, array $Args ) Override the sign in if Google+ is the default sign-in method.
entryController_signIn_handler ( Gdn_Controller $Sender, $Args )
getAccessToken ( $Code ) : mixed
isConfigured ( ) : boolean
isDefault ( ) : boolean
postController_googlePlus_create ( PostController $Sender, type $RecordType, type $ID )
setup ( )
signInButton ( string $type = 'button' ) : string
socialController_googlePlus_create ( $Sender, $Args )
socialReactions ( ) : mixed
socialSharing ( ) : mixed
structure ( )

Method Details

accessToken() public method

public accessToken ( boolean $NewValue = false ) : boolean | mixed | null
$NewValue boolean
return boolean | mixed | null

api() public method

public api ( $Path, array $Post = [] ) : mixed
$Path
$Post array
return mixed

authenticationProviderModel_calculateGooglePlus_handler() public method

Calculate the final sign in and register urls for google+.
public authenticationProviderModel_calculateGooglePlus_handler ( object $sender, array $args )
$sender object Not used.
$args array Contains the provider and

authorizeUri() public method

public authorizeUri ( array $State = [] ) : string
$State array
return string

base_AfterReactions_handler() public method

Add 'Google+' option to the row.
public base_AfterReactions_handler ( $Sender, $Args )

base_beforeSignInButton_handler() public method

public base_beforeSignInButton_handler ( $Sender, $Args )
$Sender
$Args

base_connectData_handler() public method

public base_connectData_handler ( EntryController $Sender, array $Args )
$Sender EntryController
$Args array

base_getConnections_handler() public method

public base_getConnections_handler ( $Sender, $Args )
$Sender
$Args

base_signInIcons_handler() public method

public base_signInIcons_handler ( $Sender, $Args )
$Sender
$Args

curl() public static method

public static curl ( $Url, string $Method = 'GET', array $Data = [] ) : mixed
$Url
$Method string
$Data array
return mixed

entryController_googlePlus_create() public method

public entryController_googlePlus_create ( EntryController $Sender, string $Code = false, string $State = false )
$Sender EntryController
$Code string
$State string

entryController_overrideSignIn_handler() public method

Override the sign in if Google+ is the default sign-in method.
public entryController_overrideSignIn_handler ( EntryController $Sender, array $Args )
$Sender EntryController
$Args array

entryController_signIn_handler() public method

public entryController_signIn_handler ( Gdn_Controller $Sender, $Args )
$Sender Gdn_Controller

getAccessToken() public method

public getAccessToken ( $Code ) : mixed
$Code
return mixed

isConfigured() public method

public isConfigured ( ) : boolean
return boolean

isDefault() public method

public isDefault ( ) : boolean
return boolean

postController_googlePlus_create() public method

public postController_googlePlus_create ( PostController $Sender, type $RecordType, type $ID )
$Sender PostController
$RecordType type
$ID type

setup() public method

public setup ( )

signInButton() public method

public signInButton ( string $type = 'button' ) : string
$type string
return string

socialController_googlePlus_create() public method

public socialController_googlePlus_create ( $Sender, $Args )
$Sender
$Args

socialReactions() public method

public socialReactions ( ) : mixed
return mixed

socialSharing() public method

public socialSharing ( ) : mixed
return mixed

structure() public method

public structure ( )

Property Details

$_AccessToken protected_oe property

protected string $_AccessToken
return string