Public Member Functions | |
getServices () | |
getServiceType ($service) | |
getIdentity ($service) | |
redirect ($url, $jsRedirect=true) | |
renderWidget ($properties=array()) | |
toString ($identity) | |
fromString ($identity) |
Public Attributes | |
$services = array() | |
$popup = true |
Protected Member Functions | |
getService ($service) |
EAuth::fromString | ( | $identity | ) |
Serialize the identity class.
string | $identity | serialized value. |
Definition at line 144 of file EAuth.php.
EAuth::getIdentity | ( | $service | ) |
Returns the service identity class.
string | $service | the service name. |
Definition at line 82 of file EAuth.php.
Referenced by getServices().
|
protected |
Returns the settings of the service.
string | $service | the service name. |
Definition at line 59 of file EAuth.php.
References getServices().
Referenced by getServiceType().
EAuth::getServices | ( | ) |
Returns services settings declared in the authorization classes. For perfomance reasons it uses Yii::app()->cache to store settings array.
Definition at line 31 of file EAuth.php.
References getIdentity().
Referenced by getService().
EAuth::getServiceType | ( | $service | ) |
Returns the type of the service.
string | $service | the service name. |
Definition at line 72 of file EAuth.php.
References getService().
EAuth::redirect | ( | $url, | |
$jsRedirect = true |
|||
) |
Redirects to url. If the authorization dialog opened in the popup window, it will be closed instead of redirect. Set $jsRedirect=true if you want to redirect anyway.
mixed | $url | url to redirect. Can be route or normal url. See CHtml::normalizeUrl. |
boolean | $jsRedirect | whether to use redirect while popup window is used. Defaults to true. |
Definition at line 108 of file EAuth.php.
EAuth::renderWidget | ( | $properties = array() | ) |
Simple wrapper for CController::widget function for render the EAuthWidget widget.
array | $properties | the widget properties. |
Definition at line 123 of file EAuth.php.
EAuth::toString | ( | $identity | ) |
Serialize the identity class.
EAuthServiceBase | $identity | the class instance. |
Definition at line 135 of file EAuth.php.