Gentics Portal.Node PHP API
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
All
Classes
Namespaces
Functions
Variables
Pages
common
extensions
eauth
EAuthRedirectWidget.php
1
<?php
2
/**
3
* EAuthRedirectWidget class file.
4
*
5
* @author Maxim Zemskov <nodge@yandex.ru>
6
* @link http://code.google.com/p/yii-eauth/
7
* @license http://www.opensource.org/licenses/bsd-license.php
8
*/
9
10
/**
11
* The EAuthRedirectWidget widget displays the redirect page after returning from provider.
12
* @package application.extensions.eauth
13
*/
14
class
EAuthRedirectWidget
extends
CWidget {
15
16
/**
17
* @var mixed the widget mode. Default to "login".
18
*/
19
public
$url = null;
20
21
/**
22
* @var boolean whether to use redirect inside the popup window.
23
*/
24
public
$redirect =
true
;
25
26
/**
27
* Executes the widget.
28
*/
29
public
function
run
() {
30
$assets_path = dirname(__FILE__).DIRECTORY_SEPARATOR.
'assets'
;
31
$this->render(
'redirect'
, array(
32
'id'
=> $this->getId(),
33
'url'
=> $this->url,
34
'redirect'
=> $this->redirect,
35
'assets_path'
=> $assets_path,
36
));
37
Yii::app()->end();
38
}
39
}
Generated on Thu Feb 6 2014 15:47:54 for Gentics Portal.Node PHP API by
1.8.1.2