@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link http://www.writesdown.com/ |
|
| 4 | - * @author Agiel K. Saputra <[email protected]> |
|
| 5 | - * @copyright Copyright (c) 2015 WritesDown |
|
| 6 | - * @license http://www.writesdown.com/license/ |
|
| 7 | - */ |
|
| 3 | + * @link http://www.writesdown.com/ |
|
| 4 | + * @author Agiel K. Saputra <[email protected]> |
|
| 5 | + * @copyright Copyright (c) 2015 WritesDown |
|
| 6 | + * @license http://www.writesdown.com/license/ |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | use yii\helpers\Html; |
| 10 | 10 | use yii\widgets\ActiveForm; |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link http://www.writesdown.com/ |
|
| 4 | - * @author Agiel K. Saputra <[email protected]> |
|
| 5 | - * @copyright Copyright (c) 2015 WritesDown |
|
| 6 | - * @license http://www.writesdown.com/license/ |
|
| 7 | - */ |
|
| 3 | + * @link http://www.writesdown.com/ |
|
| 4 | + * @author Agiel K. Saputra <[email protected]> |
|
| 5 | + * @copyright Copyright (c) 2015 WritesDown |
|
| 6 | + * @license http://www.writesdown.com/license/ |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | use yii\helpers\Html; |
| 10 | 10 | use yii\widgets\ActiveForm; |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link http://www.writesdown.com/ |
|
| 4 | - * @author Agiel K. Saputra <[email protected]> |
|
| 5 | - * @copyright Copyright (c) 2015 WritesDown |
|
| 6 | - * @license http://www.writesdown.com/license/ |
|
| 7 | - */ |
|
| 3 | + * @link http://www.writesdown.com/ |
|
| 4 | + * @author Agiel K. Saputra <[email protected]> |
|
| 5 | + * @copyright Copyright (c) 2015 WritesDown |
|
| 6 | + * @license http://www.writesdown.com/license/ |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | use yii\helpers\Html; |
| 10 | 10 | use yii\widgets\ActiveForm; |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link http://www.writesdown.com/ |
|
| 4 | - * @author Agiel K. Saputra <[email protected]> |
|
| 5 | - * @copyright Copyright (c) 2015 WritesDown |
|
| 6 | - * @license http://www.writesdown.com/license/ |
|
| 7 | - */ |
|
| 3 | + * @link http://www.writesdown.com/ |
|
| 4 | + * @author Agiel K. Saputra <[email protected]> |
|
| 5 | + * @copyright Copyright (c) 2015 WritesDown |
|
| 6 | + * @license http://www.writesdown.com/license/ |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | /* @var $this yii\web\View */ |
| 10 | 10 | /* @var $model common\models\User */ |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link http://www.writesdown.com/ |
|
| 4 | - * @author Agiel K. Saputra <[email protected]> |
|
| 5 | - * @copyright Copyright (c) 2015 WritesDown |
|
| 6 | - * @license http://www.writesdown.com/license/ |
|
| 7 | - */ |
|
| 3 | + * @link http://www.writesdown.com/ |
|
| 4 | + * @author Agiel K. Saputra <[email protected]> |
|
| 5 | + * @copyright Copyright (c) 2015 WritesDown |
|
| 6 | + * @license http://www.writesdown.com/license/ |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | use yii\grid\GridView; |
| 10 | 10 | use yii\helpers\ArrayHelper; |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | 'columns' => [ |
| 73 | 73 | [ |
| 74 | 74 | 'class' => 'yii\grid\CheckboxColumn', |
| 75 | - 'checkboxOptions' => function ($model) { |
|
| 75 | + 'checkboxOptions' => function($model) { |
|
| 76 | 76 | /* @var $model \common\models\User */ |
| 77 | 77 | if ($model->checkPermission()) { |
| 78 | 78 | return ['value' => $model->id]; |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | 'email:email', |
| 87 | 87 | [ |
| 88 | 88 | 'attribute' => 'role', |
| 89 | - 'value' => function ($model) { |
|
| 89 | + 'value' => function($model) { |
|
| 90 | 90 | return implode( |
| 91 | 91 | ', ', |
| 92 | 92 | ArrayHelper::getColumn(Yii::$app->authManager->getRolesByUser($model->id), 'name') |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | ], |
| 96 | 96 | [ |
| 97 | 97 | 'attribute' => 'status', |
| 98 | - 'value' => function ($model) { |
|
| 98 | + 'value' => function($model) { |
|
| 99 | 99 | return $model->statustext; |
| 100 | 100 | }, |
| 101 | 101 | 'filter' => $searchModel->getStatuses(), |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | [ |
| 104 | 104 | 'class' => 'yii\grid\ActionColumn', |
| 105 | 105 | 'buttons' => [ |
| 106 | - 'update' => function ($url, $model) { |
|
| 106 | + 'update' => function($url, $model) { |
|
| 107 | 107 | /* @var $model \common\models\User */ |
| 108 | 108 | if ($model->checkPermission()) { |
| 109 | 109 | return Html::a('<span class="glyphicon glyphicon-pencil"></span>', $url, [ |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | return ''; |
| 116 | 116 | }, |
| 117 | - 'delete' => function ($url, $model) { |
|
| 117 | + 'delete' => function($url, $model) { |
|
| 118 | 118 | /* @var $model \common\models\User */ |
| 119 | 119 | if ($model->checkPermission()) { |
| 120 | 120 | return Html::a('<span class="glyphicon glyphicon-trash"></span>', $url, [ |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link http://www.writesdown.com/ |
|
| 4 | - * @author Agiel K. Saputra <[email protected]> |
|
| 5 | - * @copyright Copyright (c) 2015 WritesDown |
|
| 6 | - * @license http://www.writesdown.com/license/ |
|
| 7 | - */ |
|
| 3 | + * @link http://www.writesdown.com/ |
|
| 4 | + * @author Agiel K. Saputra <[email protected]> |
|
| 5 | + * @copyright Copyright (c) 2015 WritesDown |
|
| 6 | + * @license http://www.writesdown.com/license/ |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | /* @var $this yii\web\View */ |
| 10 | 10 | /* @var $model common\models\User */ |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link http://www.writesdown.com/ |
|
| 4 | - * @author Agiel K. Saputra <[email protected]> |
|
| 5 | - * @copyright Copyright (c) 2015 WritesDown |
|
| 6 | - * @license http://www.writesdown.com/license/ |
|
| 7 | - */ |
|
| 3 | + * @link http://www.writesdown.com/ |
|
| 4 | + * @author Agiel K. Saputra <[email protected]> |
|
| 5 | + * @copyright Copyright (c) 2015 WritesDown |
|
| 6 | + * @license http://www.writesdown.com/license/ |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | /* @var $this yii\web\View */ |
| 10 | 10 | /* @var $model common\models\User */ |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link http://www.writesdown.com/ |
|
| 4 | - * @author Agiel K. Saputra <[email protected]> |
|
| 5 | - * @copyright Copyright (c) 2015 WritesDown |
|
| 6 | - * @license http://www.writesdown.com/license/ |
|
| 7 | - */ |
|
| 3 | + * @link http://www.writesdown.com/ |
|
| 4 | + * @author Agiel K. Saputra <[email protected]> |
|
| 5 | + * @copyright Copyright (c) 2015 WritesDown |
|
| 6 | + * @license http://www.writesdown.com/license/ |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | /* @var $this yii\web\View */ |
| 10 | 10 | /* @var $model common\models\User */ |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link http://www.writesdown.com/ |
|
| 4 | - * @author Agiel K. Saputra <[email protected]> |
|
| 5 | - * @copyright Copyright (c) 2015 WritesDown |
|
| 6 | - * @license http://www.writesdown.com/license/ |
|
| 7 | - */ |
|
| 3 | + * @link http://www.writesdown.com/ |
|
| 4 | + * @author Agiel K. Saputra <[email protected]> |
|
| 5 | + * @copyright Copyright (c) 2015 WritesDown |
|
| 6 | + * @license http://www.writesdown.com/license/ |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | use yii\helpers\ArrayHelper; |
| 10 | 10 | use yii\helpers\Html; |