Abstract Class yii\authclient\BaseClient
BaseClient is a base Auth Client class.
See also yii\authclient\ClientInterface.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$behaviors | yii\base\Behavior[] | List of behaviors attached to this component | yii\base\Component |
$id | string | Service id. | yii\authclient\BaseClient |
$name | string | Service name. | yii\authclient\BaseClient |
$normalizeUserAttributeMap | array | Normalize user attribute map. | yii\authclient\BaseClient |
$title | string | Service title. | yii\authclient\BaseClient |
$userAttributes | array | List of user attributes | yii\authclient\BaseClient |
$viewOptions | array | View options in format: optionName => optionValue | yii\authclient\BaseClient |
Public Methods
Method | Description | Defined By |
---|---|---|
__call() | Calls the named method which is not a class method. | yii\base\Component |
__clone() | This method is called after the object is created by cloning an existing one. | yii\base\Component |
__construct() | Constructor. | yii\base\Object |
__get() | Returns the value of a component property. | yii\base\Component |
__isset() | Checks if a property is set, i.e. defined and not null. | yii\base\Component |
__set() | Sets the value of a component property. | yii\base\Component |
__unset() | Sets a component property to be null. | yii\base\Component |
attachBehavior() | Attaches a behavior to this component. | yii\base\Component |
attachBehaviors() | Attaches a list of behaviors to the component. | yii\base\Component |
behaviors() | Returns a list of behaviors that this component should behave as. | yii\base\Component |
canGetProperty() | Returns a value indicating whether a property can be read. | yii\base\Component |
canSetProperty() | Returns a value indicating whether a property can be set. | yii\base\Component |
className() | Returns the fully qualified name of this class. | yii\base\Object |
detachBehavior() | Detaches a behavior from the component. | yii\base\Component |
detachBehaviors() | Detaches all behaviors from the component. | yii\base\Component |
ensureBehaviors() | Makes sure that the behaviors declared in behaviors() are attached to this component. | yii\base\Component |
getBehavior() | Returns the named behavior object. | yii\base\Component |
getBehaviors() | Returns all behaviors attached to this component. | yii\base\Component |
getId() | yii\authclient\BaseClient | |
getName() | yii\authclient\BaseClient | |
getNormalizeUserAttributeMap() | yii\authclient\BaseClient | |
getTitle() | yii\authclient\BaseClient | |
getUserAttributes() | yii\authclient\BaseClient | |
getViewOptions() | yii\authclient\BaseClient | |
hasEventHandlers() | Returns a value indicating whether there is any handler attached to the named event. | yii\base\Component |
hasMethod() | Returns a value indicating whether a method is defined. | yii\base\Component |
hasProperty() | Returns a value indicating whether a property is defined for this component. | yii\base\Component |
init() | Initializes the object. | yii\base\Object |
off() | Detaches an existing event handler from this component. | yii\base\Component |
on() | Attaches an event handler to an event. | yii\base\Component |
setId() | yii\authclient\BaseClient | |
setName() | yii\authclient\BaseClient | |
setNormalizeUserAttributeMap() | yii\authclient\BaseClient | |
setTitle() | yii\authclient\BaseClient | |
setUserAttributes() | yii\authclient\BaseClient | |
setViewOptions() | yii\authclient\BaseClient | |
trigger() | Triggers an event. | yii\base\Component |
Protected Methods
Method | Description | Defined By |
---|---|---|
defaultName() | Generates service name. | yii\authclient\BaseClient |
defaultNormalizeUserAttributeMap() | Returns the default $normalizeUserAttributeMap value. | yii\authclient\BaseClient |
defaultTitle() | Generates service title. | yii\authclient\BaseClient |
defaultViewOptions() | Returns the default $viewOptions value. | yii\authclient\BaseClient |
initUserAttributes() | Initializes authenticated user attributes. | yii\authclient\BaseClient |
normalizeUserAttributes() | Normalize given user attributes according to $normalizeUserAttributeMap. | yii\authclient\BaseClient |
Property Details
Service id.
Service name.
void setNormalizeUserAttributeMap( $normalizeUserAttributeMap )
Normalize user attribute map.
Service title.
List of user attributes
View options in format: optionName => optionValue
Method Details
Generates service name.
string defaultName( ) | ||
return | string | Service name. |
---|
Returns the default $normalizeUserAttributeMap value.
Particular client may override this method in order to provide specific default map.
array defaultNormalizeUserAttributeMap( ) | ||
return | array | Normalize attribute map. |
---|
Generates service title.
string defaultTitle( ) | ||
return | string | Service title. |
---|
Returns the default $viewOptions value.
Particular client may override this method in order to provide specific default view options.
array defaultViewOptions( ) | ||
return | array | List of default $viewOptions |
---|
string getId( ) | ||
return | string | Service id |
---|
string getName( ) | ||
return | string | Service name. |
---|
array getNormalizeUserAttributeMap( ) | ||
return | array | Normalize user attribute map. |
---|
string getTitle( ) | ||
return | string | Service title. |
---|
array getUserAttributes( ) | ||
return | array | List of user attributes |
---|
array getViewOptions( ) | ||
return | array | View options in format: optionName => optionValue |
---|
Initializes authenticated user attributes.
array initUserAttributes( ) | ||
return | array | Auth user attributes. |
---|
Normalize given user attributes according to $normalizeUserAttributeMap.
array normalizeUserAttributes( $attributes ) | ||
$attributes | array | Raw attributes. |
return | array | Normalized attributes. |
---|---|---|
throws | yii\base\InvalidConfigException | on incorrect normalize attribute map. |
void setId( $id ) | ||
$id | string | Service id. |
void setName( $name ) | ||
$name | string | Service name. |
void setNormalizeUserAttributeMap( $normalizeUserAttributeMap ) | ||
$normalizeUserAttributeMap | array | Normalize user attribute map. |
void setTitle( $title ) | ||
$title | string | Service title. |
void setUserAttributes( $userAttributes ) | ||
$userAttributes | array | List of user attributes |
void setViewOptions( $viewOptions ) | ||
$viewOptions | array | View options in format: optionName => optionValue |