PHP Class 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 .
Inheritance: implements CrawlerPlugin, implements DashboardPlugin
Afficher le fichier Open project: vanilla/vanilla Class Usage Examples

Protected Properties

Свойство Type Description
$_AccessToken string
$_RedirectUri null

Méthodes publiques

Méthode Description
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 ( )

Méthodes protégées

Méthode Description
addReactButton ( $Sender, $Args ) Output Quote link.
getAccessToken ( $Code, $RedirectUri, boolean $ThrowError = true ) : mixed

Private Methods

Méthode Description
_getButton ( ) : string

Method Details

accessToken() public méthode

public accessToken ( ) : boolean | mixed | null
Résultat boolean | mixed | null

addReactButton() protected méthode

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

api() public méthode

public api ( $Path, boolean $Post = false ) : mixed
$Path
$Post boolean
Résultat mixed

authorize() public méthode

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

authorizeUri() public méthode

public authorizeUri ( boolean $Query = false, boolean $RedirectUri = false ) : string
$Query boolean
$RedirectUri boolean
Résultat string

base_afterReactions_handler() public méthode

Add 'Facebook' option to the row.
public base_afterReactions_handler ( $Sender, $Args )

base_beforeSignInButton_handler() public méthode

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

base_connectData_handler() public méthode

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

base_discussionFormOptions_handler() public méthode

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

base_getConnections_handler() public méthode

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

base_signInIcons_handler() public méthode

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

commentModel_afterSaveComment_handler() public méthode

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

discussionController_afterBodyField_handler() public méthode

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

discussionModel_afterSaveDiscussion_handler() public méthode

entryController_signIn_handler() public méthode

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

getAccessToken() protected méthode

protected getAccessToken ( $Code, $RedirectUri, boolean $ThrowError = true ) : mixed
$Code
$RedirectUri
$ThrowError boolean
Résultat mixed

getProfile() public méthode

public getProfile ( $AccessToken ) : mixed
$AccessToken
Résultat mixed

isConfigured() public méthode

public isConfigured ( ) : boolean
Résultat boolean

postController_facebook_create() public méthode

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

profileConnecUrl() public static méthode

public static profileConnecUrl ( ) : string
Résultat string

profileController_FacebookConnect_create() public méthode

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

redirectUri() public méthode

public redirectUri ( null $NewValue = null ) : null | string
$NewValue null
Résultat null | string

setup() public méthode

public setup ( )

socialController_facebook_create() public méthode

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

socialReactions() public méthode

public socialReactions ( )

socialSharing() public méthode

public socialSharing ( ) : boolean
Résultat boolean

socialSignIn() public méthode

public socialSignIn ( ) : boolean
Résultat boolean

structure() public méthode

public structure ( )

Property Details

$_AccessToken protected_oe property

protected string $_AccessToken
Résultat string

$_RedirectUri protected_oe property

protected null $_RedirectUri
Résultat null