PHP 클래스 FacebookPlugin, vanilla

Copyright (c) 2009-2010 Gina Trapani, Mark Wilkie LICENSE: This file is part of ThinkUp (http://thinkupapp.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 .
상속: implements CrawlerPlugin, implements DashboardPlugin
파일 보기 프로젝트 열기: vanilla/vanilla 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_AccessToken string
$_RedirectUri null

공개 메소드들

메소드 설명
accessToken ( ) : boolean | mixed | null
api ( $Path, boolean $Post = false ) : mixed
authorize ( boolean $Query = false )
authorizeUri ( boolean $Query = false, boolean $RedirectUri = false ) : string
base_afterReactions_handler ( $Sender, $Args ) Add 'Facebook' option to the row.
base_beforeSignInButton_handler ( $Sender, $Args )
base_beforeSignInLink_handler ( $Sender )
base_connectData_handler ( Gdn_Controller $Sender, array $Args )
base_discussionFormOptions_handler ( $Sender, $Args )
base_getConnections_handler ( $Sender, $Args )
base_signInIcons_handler ( $Sender, $Args )
commentModel_afterSaveComment_handler ( $Sender, $Args )
discussionController_afterBodyField_handler ( $Sender, $Args )
discussionModel_afterSaveDiscussion_handler ( $Sender, $Args )
entryController_signIn_handler ( Gdn_Controller $Sender, $Args )
getProfile ( $AccessToken ) : mixed
isConfigured ( ) : boolean
postController_facebook_create ( PostController $Sender, type $RecordType, type $ID )
profileConnecUrl ( ) : string
profileController_FacebookConnect_create ( ProfileController $Sender, type $UserReference, type $Username, type $Code = false )
redirectUri ( null $NewValue = null ) : null | string
setup ( )
socialController_facebook_create ( $Sender, $Args )
socialReactions ( )
socialSharing ( ) : boolean
socialSignIn ( ) : boolean
structure ( )

보호된 메소드들

메소드 설명
addReactButton ( $Sender, $Args ) Output Quote link.
getAccessToken ( $Code, $RedirectUri, boolean $ThrowError = true ) : mixed

비공개 메소드들

메소드 설명
_getButton ( ) : string

메소드 상세

accessToken() 공개 메소드

public accessToken ( ) : boolean | mixed | null
리턴 boolean | mixed | null

addReactButton() 보호된 메소드

Output Quote link.
protected addReactButton ( $Sender, $Args )

api() 공개 메소드

public api ( $Path, boolean $Post = false ) : mixed
$Path
$Post boolean
리턴 mixed

authorize() 공개 메소드

public authorize ( boolean $Query = false )
$Query boolean

authorizeUri() 공개 메소드

public authorizeUri ( boolean $Query = false, boolean $RedirectUri = false ) : string
$Query boolean
$RedirectUri boolean
리턴 string

base_afterReactions_handler() 공개 메소드

Add 'Facebook' 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 ( Gdn_Controller $Sender, array $Args )
$Sender Gdn_Controller
$Args array

base_discussionFormOptions_handler() 공개 메소드

public base_discussionFormOptions_handler ( $Sender, $Args )
$Sender
$Args

base_getConnections_handler() 공개 메소드

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

base_signInIcons_handler() 공개 메소드

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

commentModel_afterSaveComment_handler() 공개 메소드

public commentModel_afterSaveComment_handler ( $Sender, $Args )
$Sender
$Args

discussionController_afterBodyField_handler() 공개 메소드

public discussionController_afterBodyField_handler ( $Sender, $Args )
$Sender
$Args

discussionModel_afterSaveDiscussion_handler() 공개 메소드

entryController_signIn_handler() 공개 메소드

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

getAccessToken() 보호된 메소드

protected getAccessToken ( $Code, $RedirectUri, boolean $ThrowError = true ) : mixed
$Code
$RedirectUri
$ThrowError boolean
리턴 mixed

getProfile() 공개 메소드

public getProfile ( $AccessToken ) : mixed
$AccessToken
리턴 mixed

isConfigured() 공개 메소드

public isConfigured ( ) : boolean
리턴 boolean

postController_facebook_create() 공개 메소드

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

profileConnecUrl() 공개 정적인 메소드

public static profileConnecUrl ( ) : string
리턴 string

profileController_FacebookConnect_create() 공개 메소드

public profileController_FacebookConnect_create ( ProfileController $Sender, type $UserReference, type $Username, type $Code = false )
$Sender ProfileController
$UserReference type
$Username type
$Code type

redirectUri() 공개 메소드

public redirectUri ( null $NewValue = null ) : null | string
$NewValue null
리턴 null | string

setup() 공개 메소드

public setup ( )

socialController_facebook_create() 공개 메소드

public socialController_facebook_create ( $Sender, $Args )
$Sender
$Args

socialReactions() 공개 메소드

public socialReactions ( )

socialSharing() 공개 메소드

public socialSharing ( ) : boolean
리턴 boolean

socialSignIn() 공개 메소드

public socialSignIn ( ) : boolean
리턴 boolean

structure() 공개 메소드

public structure ( )

프로퍼티 상세

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

protected string $_AccessToken
리턴 string

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

protected null $_RedirectUri
리턴 null