Свойство | Тип | Описание | |
---|---|---|---|
$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 getBaseAuthUrl ( ) : array | ||
Результат | array | base auth URL configuration. |
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 |