PHP 클래스 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 .
상속: extends Plugin, implements CrawlerPlugin, implements DashboardPlugin, implements PostDetailPlugin
파일 보기 프로젝트 열기: vanilla/vanilla 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_AccessToken string

공개 메소드들

메소드 설명
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 ( )

메소드 상세

accessToken() 공개 메소드

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

api() 공개 메소드

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

authenticationProviderModel_calculateGooglePlus_handler() 공개 메소드

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 authorizeUri ( array $State = [] ) : string
$State array
리턴 string

base_AfterReactions_handler() 공개 메소드

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

base_beforeSignInButton_handler() 공개 메소드

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

base_connectData_handler() 공개 메소드

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

base_getConnections_handler() 공개 메소드

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

base_signInIcons_handler() 공개 메소드

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

curl() 공개 정적인 메소드

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

entryController_googlePlus_create() 공개 메소드

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

entryController_overrideSignIn_handler() 공개 메소드

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 entryController_signIn_handler ( Gdn_Controller $Sender, $Args )
$Sender Gdn_Controller

getAccessToken() 공개 메소드

public getAccessToken ( $Code ) : mixed
$Code
리턴 mixed

isConfigured() 공개 메소드

public isConfigured ( ) : boolean
리턴 boolean

isDefault() 공개 메소드

public isDefault ( ) : boolean
리턴 boolean

postController_googlePlus_create() 공개 메소드

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

setup() 공개 메소드

public setup ( )

signInButton() 공개 메소드

public signInButton ( string $type = 'button' ) : string
$type string
리턴 string

socialController_googlePlus_create() 공개 메소드

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

socialReactions() 공개 메소드

public socialReactions ( ) : mixed
리턴 mixed

socialSharing() 공개 메소드

public socialSharing ( ) : mixed
리턴 mixed

structure() 공개 메소드

public structure ( )

프로퍼티 상세

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

protected string $_AccessToken
리턴 string