프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$autoRender | indicates if widget content, should be rendered automatically. Note: this value automatically set to 'false' at the first call of AuthChoice::createClientUrl | ||
$clientCollection | name of the auth client collection application component. This component will be used to fetch services value if it is not set. | ||
$clientIdGetParamName | name of the GET param , which should be used to passed auth client id to URL defined by [[baseAuthUrl]]. | ||
$clientOptions | additional options to be passed to the underlying JS plugin. | ||
$options | the HTML attributes that should be rendered in the div HTML tag representing the container element. | ||
$popupMode | indicates if popup window should be used instead of direct links. |
메소드 | 설명 | |
---|---|---|
clientLink ( yii\authclient\ClientInterface $client, string $text = null, array $htmlOptions = [] ) : string | Outputs client auth link. | |
createClientUrl ( yii\authclient\ClientInterface $client ) : string | Composes client auth URL. | |
getBaseAuthUrl ( ) : array | ||
getClients ( ) : yii\authclient\ClientInterface[] | ||
init ( ) | Initializes the widget. | |
run ( ) : string | Runs the widget. | |
setBaseAuthUrl ( array $baseAuthUrl ) | ||
setClients ( array $clients ) |
메소드 | 설명 | |
---|---|---|
defaultBaseAuthUrl ( ) : array | Composes default base auth URL configuration. | |
defaultClients ( ) : yii\authclient\ClientInterface[] | Returns default auth clients list. | |
renderMainContent ( ) : string | Renders the main content, which includes all external services links. |
public clientLink ( yii\authclient\ClientInterface $client, string $text = null, array $htmlOptions = [] ) : string | ||
$client | yii\authclient\ClientInterface | external auth client instance. |
$text | string | link text, if not set - default value will be generated. |
$htmlOptions | array | link HTML options. |
리턴 | string | generated HTML. |
public createClientUrl ( yii\authclient\ClientInterface $client ) : string | ||
$client | yii\authclient\ClientInterface | external auth client instance. |
리턴 | string | auth URL. |
protected defaultBaseAuthUrl ( ) : array | ||
리턴 | array | base auth URL configuration. |
protected defaultClients ( ) : yii\authclient\ClientInterface[] | ||
리턴 | yii\authclient\ClientInterface[] | auth clients list. |
public getClients ( ) : yii\authclient\ClientInterface[] | ||
리턴 | yii\authclient\ClientInterface[] | auth providers |
protected renderMainContent ( ) : string | ||
리턴 | string | generated HTML. |
public setBaseAuthUrl ( array $baseAuthUrl ) | ||
$baseAuthUrl | array | base auth URL configuration. |
public $autoRender |
public $clientCollection |
public $clientIdGetParamName |
public $clientOptions |
public $options |