Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
7f0ab92d
Commit
7f0ab92d
authored
Apr 07, 2014
by
Klimov Paul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Widget 'yii\authclient\widgets\Choice' renamed to 'yii\authclient\widgets\AuthChoice'
parent
c7a22272
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
AuthChoice.php
extensions/authclient/widgets/AuthChoice.php
+9
-9
AuthChoiceAsset.php
extensions/authclient/widgets/AuthChoiceAsset.php
+2
-2
No files found.
extensions/authclient/widgets/Choice.php
→
extensions/authclient/widgets/
Auth
Choice.php
View file @
7f0ab92d
...
...
@@ -14,7 +14,7 @@ use yii\helpers\Html;
use
yii\authclient\ClientInterface
;
/**
* Choice prints buttons for authentication via various auth clients.
*
Auth
Choice prints buttons for authentication via various auth clients.
* It opens a popup window for the client authentication process.
* By default this widget relies on presence of [[\yii\authclient\Collection]] among application components
* to get auth clients information.
...
...
@@ -22,7 +22,7 @@ use yii\authclient\ClientInterface;
* Example:
*
* ~~~php
* <?= yii\authclient\widgets\Choice::widget([
* <?= yii\authclient\widgets\
Auth
Choice::widget([
* 'baseAuthUrl' => ['site/auth']
* ]); ?>
* ~~~
...
...
@@ -33,17 +33,17 @@ use yii\authclient\ClientInterface;
*
* ~~~php
* <?php
* use yii\authclient\widgets\Choice;
* use yii\authclient\widgets\
Auth
Choice;
* ?>
* <?php $auth
Choice =
Choice::begin([
* <?php $auth
AuthChoice = Auth
Choice::begin([
* 'baseAuthUrl' => ['site/auth']
* ]); ?>
* <ul>
* <?php foreach ($authChoice->getClients() as $client): ?>
* <li><?= $authChoice->clientLink($client) ?></li>
* <?php foreach ($auth
Auth
Choice->getClients() as $client): ?>
* <li><?= $auth
Auth
Choice->clientLink($client) ?></li>
* <?php endforeach; ?>
* </ul>
* <?php Choice::end(); ?>
* <?php
Auth
Choice::end(); ?>
* ~~~
*
* This widget supports following keys for [[ClientInterface::getViewOptions()]] result:
...
...
@@ -58,7 +58,7 @@ use yii\authclient\ClientInterface;
* @author Paul Klimov <klimov.paul@gmail.com>
* @since 2.0
*/
class
Choice
extends
Widget
class
Auth
Choice
extends
Widget
{
/**
* @var string name of the auth client collection application component.
...
...
@@ -226,7 +226,7 @@ class Choice extends Widget
{
if
(
$this
->
popupMode
)
{
$view
=
Yii
::
$app
->
getView
();
ChoiceAsset
::
register
(
$view
);
Auth
ChoiceAsset
::
register
(
$view
);
$view
->
registerJs
(
"
\$
('#"
.
$this
->
getId
()
.
"').authchoice();"
);
}
$this
->
options
[
'id'
]
=
$this
->
getId
();
...
...
extensions/authclient/widgets/ChoiceAsset.php
→
extensions/authclient/widgets/
Auth
ChoiceAsset.php
View file @
7f0ab92d
...
...
@@ -10,12 +10,12 @@ namespace yii\authclient\widgets;
use
yii\web\AssetBundle
;
/**
*
ChoiceAsset is an asset bundle for [[
Choice]] widget.
*
AuthChoiceAsset is an asset bundle for [[Auth
Choice]] widget.
*
* @author Paul Klimov <klimov.paul@gmail.com>
* @since 2.0
*/
class
ChoiceAsset
extends
AssetBundle
class
Auth
ChoiceAsset
extends
AssetBundle
{
public
$sourcePath
=
'@yii/authclient/widgets/assets'
;
public
$js
=
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment