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
Mostrar archivo Open project: vanilla/vanilla Class Usage Examples

Protected Properties

Property Type Description
$_AccessToken string
$_RedirectUri null

Public Methods

Method 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 ( )

Protected Methods

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

Private Methods

Method Description
_getButton ( ) : string

Method Details

accessToken() public method

public accessToken ( ) : boolean | mixed | null
return boolean | mixed | null

addReactButton() protected method

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

api() public method

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

authorize() public method

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

authorizeUri() public method

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

base_afterReactions_handler() public method

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

base_discussionFormOptions_handler() public method

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

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

commentModel_afterSaveComment_handler() public method

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

discussionController_afterBodyField_handler() public method

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

discussionModel_afterSaveDiscussion_handler() public method

entryController_signIn_handler() public method

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

getAccessToken() protected method

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

getProfile() public method

public getProfile ( $AccessToken ) : mixed
$AccessToken
return mixed

isConfigured() public method

public isConfigured ( ) : boolean
return boolean

postController_facebook_create() public method

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

profileConnecUrl() public static method

public static profileConnecUrl ( ) : string
return string

profileController_FacebookConnect_create() public method

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

redirectUri() public method

public redirectUri ( null $NewValue = null ) : null | string
$NewValue null
return null | string

setup() public method

public setup ( )

socialController_facebook_create() public method

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

socialReactions() public method

public socialReactions ( )

socialSharing() public method

public socialSharing ( ) : boolean
return boolean

socialSignIn() public method

public socialSignIn ( ) : boolean
return boolean

structure() public method

public structure ( )

Property Details

$_AccessToken protected_oe property

protected string $_AccessToken
return string

$_RedirectUri protected_oe property

protected null $_RedirectUri
return null