PHP 클래스 JsConnectPlugin, addons

상속: extends Gdn_Plugin
파일 보기 프로젝트 열기: vanilla/addons 1 사용 예제들

공개 메소드들

메소드 설명
addControl ( string $key, array $item ) Add an element to the controls collection. Used to render settings forms.
allConnectButtons ( array $Options = [] ) : string
authenticationProviderModel_calculateJsConnect_handler ( AuthenticationProviderModel $sender, array $args ) Calculate the final sign in and register urls for jsConnect.
base_beforeSignInButton_handler ( Gdn_Controller $Sender, $Args )
base_beforeSignInLink_handler ( Gdn_Controller $Sender )
base_connectData_handler ( EntryController $Sender, array $Args )
base_getAppSettingsMenuItems_handler ( Gdn_Controller $Sender )
base_render_before ( Gdn_Controller $Sender, $Args )
connectButton ( $Provider, array $Options = [] ) : string
connectUrl ( $Provider, boolean $Secure = false, boolean $Callback = true ) : boolean | string
entryController_jsConnect_create ( EntryController $Sender, string $Action = '', string $Target = '' ) An intermediate page for jsConnect that checks SSO against and then posts the information to /entry/connect.
entryController_signIn_handler ( Gdn_Controller $Sender, $Args )
getAllProviders ( ) : array | mixed Convenience method for functional clarity.
getProvider ( null $client_id = null ) : array | mixed
getRegisterUrl ( array | integer $provider, string | null $target = null ) : string Gets the full sign in url with the jsConnect redirect added.
getSignInUrl ( arrat | integer $provider, string | null $target = null ) : string Gets the full sign in url with the jsConnect redirect added.
profileController_jsConnect_create ( Gdn_Controller $Sender, array $Args = [] )
rootController_sso_handler ( RootController $Sender, $Args )
settingsController_jsConnect_create ( SettingsController $Sender, array $Args = [] )
settings_delete ( $Sender, $Args )

보호된 메소드들

메소드 설명
connectQueryString ( $provider, null $target = null ) : array
settings_addEdit ( SettingsController $sender, array $Args )
settings_index ( $Sender, $Args )

메소드 상세

addControl() 공개 메소드

Add an element to the controls collection. Used to render settings forms.
public addControl ( string $key, array $item )
$key string
$item array

allConnectButtons() 공개 정적인 메소드

public static allConnectButtons ( array $Options = [] ) : string
$Options array
리턴 string

authenticationProviderModel_calculateJsConnect_handler() 공개 메소드

Calculate the final sign in and register urls for jsConnect.
public authenticationProviderModel_calculateJsConnect_handler ( AuthenticationProviderModel $sender, array $args )
$sender AuthenticationProviderModel Not used.
$args array Contains the provider and

base_beforeSignInButton_handler() 공개 메소드

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

base_connectData_handler() 공개 메소드

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

base_getAppSettingsMenuItems_handler() 공개 메소드

public base_getAppSettingsMenuItems_handler ( Gdn_Controller $Sender )
$Sender Gdn_Controller

base_render_before() 공개 메소드

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

connectButton() 공개 정적인 메소드

public static connectButton ( $Provider, array $Options = [] ) : string
$Provider
$Options array
리턴 string

connectQueryString() 보호된 정적인 메소드

protected static connectQueryString ( $provider, null $target = null ) : array
$provider
$target null
리턴 array

connectUrl() 공개 정적인 메소드

public static connectUrl ( $Provider, boolean $Secure = false, boolean $Callback = true ) : boolean | string
$Provider
$Secure boolean
$Callback boolean
리턴 boolean | string

entryController_jsConnect_create() 공개 메소드

An intermediate page for jsConnect that checks SSO against and then posts the information to /entry/connect.
public entryController_jsConnect_create ( EntryController $Sender, string $Action = '', string $Target = '' )
$Sender EntryController
$Action string A specific action. It can be one of the following: - blank: The default action. - guest: There is no user signed in. -
$Target string The url to redirect to after a successful connect.

entryController_signIn_handler() 공개 메소드

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

getAllProviders() 공개 정적인 메소드

Convenience method for functional clarity.
public static getAllProviders ( ) : array | mixed
리턴 array | mixed

getProvider() 공개 정적인 메소드

public static getProvider ( null $client_id = null ) : array | mixed
$client_id null
리턴 array | mixed

getRegisterUrl() 공개 정적인 메소드

Gets the full sign in url with the jsConnect redirect added.
public static getRegisterUrl ( array | integer $provider, string | null $target = null ) : string
$provider array | integer The authentication provider or its ID.
$target string | null The url to redirect to after signing in or null to guess the target.
리턴 string Returns the sign in url.

getSignInUrl() 공개 정적인 메소드

Gets the full sign in url with the jsConnect redirect added.
public static getSignInUrl ( arrat | integer $provider, string | null $target = null ) : string
$provider arrat | integer The authentication provider or its ID.
$target string | null The url to redirect to after signing in or null to guess the target.
리턴 string Returns the sign in url.

profileController_jsConnect_create() 공개 메소드

public profileController_jsConnect_create ( Gdn_Controller $Sender, array $Args = [] )
$Sender Gdn_Controller
$Args array

rootController_sso_handler() 공개 메소드

public rootController_sso_handler ( RootController $Sender, $Args )
$Sender RootController
$Args

settingsController_jsConnect_create() 공개 메소드

public settingsController_jsConnect_create ( SettingsController $Sender, array $Args = [] )
$Sender SettingsController
$Args array

settings_addEdit() 보호된 메소드

protected settings_addEdit ( SettingsController $sender, array $Args )
$sender SettingsController
$Args array

settings_delete() 공개 메소드

public settings_delete ( $Sender, $Args )
$Sender
$Args

settings_index() 보호된 메소드

protected settings_index ( $Sender, $Args )
$Sender
$Args