Class yeesoft\auth\widgets\AuthChoice

Inheritanceyeesoft\auth\widgets\AuthChoice » yii\authclient\widgets\AuthChoice

Public Methods

Hide inherited methods

MethodDescriptionDefined By
clientLink() Outputs client auth link. yeesoft\auth\widgets\AuthChoice
init() Initializes the widget. yeesoft\auth\widgets\AuthChoice

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
renderMainContent() Renders the main content, which includes all external services links. yeesoft\auth\widgets\AuthChoice

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
DISPLAY_ALL 0 yeesoft\auth\widgets\AuthChoice
DISPLAY_AUTHORIZED 1 yeesoft\auth\widgets\AuthChoice
DISPLAY_NON_AUTHORIZED 2 yeesoft\auth\widgets\AuthChoice

Property Details

$displayClients public property
public $displayClients self::DISPLAY_ALL
$shortView public property
public $shortView false

Method Details

clientLink() public method

Outputs client auth link.

public void clientLink ( $client, $text null, array $htmlOptions = [] )
$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.

throws \yii\base\InvalidConfigException

on wrong configuration.

init() public method

Initializes the widget.

public void init ( )
renderMainContent() protected method

Renders the main content, which includes all external services links.

protected void renderMainContent ( )