PHP Class TwitterPlugin, vanilla

Inheritance: extends Gdn_Plugin
Afficher le fichier Open project: vanilla/vanilla Class Usage Examples

Méthodes publiques

Свойство Type Description
$BaseApiUrl Twitter's URL.

Protected Properties

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

Méthodes publiques

Méthode Description
accessToken ( string $Token = null, string $Secret = null ) : OAuthToken Gets/sets the current oauth access token.
api ( $Url, null $Params = null, string $Method = 'GET' ) : mixed | string
authorize ( boolean $Query = false )
base_AfterReactions_handler ( $Sender, $Args ) Add 'Twitter' 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 )
deleteOAuthToken ( $Token )
discussionController_afterBodyField_handler ( $Sender, $Args )
discussionModel_afterSaveDiscussion_handler ( $Sender, $Args )
entryController_signIn_handler ( Gdn_Controller $Sender, $Args )
entryController_twauthorize_create ( $Sender, string $Dir = '' )
getAccessToken ( $RequestToken, $Verifier ) : OAuthToken
getOAuthToken ( $Token ) : null | OAuthToken
getProfile ( ) : mixed | string
isConfigured ( ) : boolean
postController_twitter_create ( PostController $Sender, type $RecordType, type $ID )
profileConnecUrl ( ) : string
profileController_twitterConnect_create ( ProfileController $Sender, type $UserReference = '', type $Username = '', type $oauth_token = '', type $oauth_verifier = '' )
redirectUri ( null $NewValue = null ) : null | string
setOAuthToken ( $Token, null $Secret = null, string $Type = 'request' )
setup ( )
socialController_twitter_create ( $Sender, $Args )
socialReactions ( ) : boolean
socialSharing ( ) : boolean
socialSignIn ( ) : boolean
structure ( ) Perform any necessary database or configuration updates.

Méthodes protégées

Méthode Description
_authorizeHref ( boolean $Popup = false ) : string
_curl ( OAuthRequest $Request, $Post = null )
addReactButton ( $Sender, $Args ) Output Quote link.

Private Methods

Méthode Description
_getButton ( ) : string

Method Details

_authorizeHref() protected méthode

protected _authorizeHref ( boolean $Popup = false ) : string
$Popup boolean
Résultat string

_curl() protected méthode

protected _curl ( OAuthRequest $Request, $Post = null )
$Request OAuthRequest

accessToken() public méthode

Gets/sets the current oauth access token.
public accessToken ( string $Token = null, string $Secret = null ) : OAuthToken
$Token string
$Secret string
Résultat OAuthToken

addReactButton() protected méthode

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

api() public méthode

public api ( $Url, null $Params = null, string $Method = 'GET' ) : mixed | string
$Url
$Params null
$Method string
Résultat mixed | string

authorize() public méthode

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

base_AfterReactions_handler() public méthode

Add 'Twitter' 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

deleteOAuthToken() public méthode

public deleteOAuthToken ( $Token )
$Token

discussionController_afterBodyField_handler() public méthode

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

discussionModel_afterSaveDiscussion_handler() public méthode

public discussionModel_afterSaveDiscussion_handler ( $Sender, $Args )
$Sender
$Args

entryController_signIn_handler() public méthode

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

entryController_twauthorize_create() public méthode

public entryController_twauthorize_create ( $Sender, string $Dir = '' )
$Sender
$Dir string

getAccessToken() public méthode

public getAccessToken ( $RequestToken, $Verifier ) : OAuthToken
$RequestToken
$Verifier
Résultat OAuthToken

getOAuthToken() public méthode

public getOAuthToken ( $Token ) : null | OAuthToken
$Token
Résultat null | OAuthToken

getProfile() public méthode

public getProfile ( ) : mixed | string
Résultat mixed | string

isConfigured() public méthode

public isConfigured ( ) : boolean
Résultat boolean

postController_twitter_create() public méthode

public postController_twitter_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_twitterConnect_create() public méthode

public profileController_twitterConnect_create ( ProfileController $Sender, type $UserReference = '', type $Username = '', type $oauth_token = '', type $oauth_verifier = '' )
$Sender ProfileController
$UserReference type
$Username type
$oauth_token type
$oauth_verifier type

redirectUri() public méthode

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

setOAuthToken() public méthode

public setOAuthToken ( $Token, null $Secret = null, string $Type = 'request' )
$Token
$Secret null
$Type string

setup() public méthode

public setup ( )

socialController_twitter_create() public méthode

public socialController_twitter_create ( $Sender, $Args )
$Sender
$Args

socialReactions() public méthode

public socialReactions ( ) : boolean
Résultat boolean

socialSharing() public méthode

public socialSharing ( ) : boolean
Résultat boolean

socialSignIn() public méthode

public socialSignIn ( ) : boolean
Résultat boolean

structure() public méthode

Perform any necessary database or configuration updates.
public structure ( )

Property Details

$BaseApiUrl public_oe static_oe property

Twitter's URL.
public static $BaseApiUrl

$_AccessToken protected_oe property

protected string $_AccessToken
Résultat string

$_RedirectUri protected_oe property

protected string $_RedirectUri
Résultat string