| @@ -36,7 +36,7 @@ | ||
| 36 | 36 | } | 
| 37 | 37 | |
| 38 | 38 | /** | 
| 39 | - * @param $m | |
| 39 | + * @param string $m | |
| 40 | 40 | * @return string | 
| 41 | 41 | */ | 
| 42 | 42 | protected function translate($m): string | 
| @@ -9,7 +9,6 @@ | ||
| 9 | 9 | |
| 10 | 10 | |
| 11 | 11 | use execut\actions\action\Adapter; | 
| 12 | -use execut\actions\action\Response; | |
| 13 | 12 | |
| 14 | 13 | class Delete extends Adapter | 
| 15 | 14 |  { | 
| @@ -8,7 +8,6 @@ | ||
| 8 | 8 | namespace execut\actions\action\adapter; | 
| 9 | 9 | |
| 10 | 10 | use execut\actions\action\Adapter; | 
| 11 | -use execut\actions\action\adapter\viewRenderer\DetailView; | |
| 12 | 11 | use execut\actions\action\adapter\viewRenderer\DynaGrid; | 
| 13 | 12 | use execut\yii\db\query\ActiveQuery; | 
| 14 | 13 | use yii\helpers\ArrayHelper; | 
| @@ -8,14 +8,11 @@ | ||
| 8 | 8 | namespace execut\actions\action\adapter; | 
| 9 | 9 | |
| 10 | 10 | |
| 11 | -use execut\actions\action\Adapter; | |
| 12 | 11 | use execut\actions\action\adapter\viewRenderer\DynaGrid; | 
| 13 | -use execut\yii\helpers\Html; | |
| 14 | 12 | use yii\base\Model; | 
| 15 | 13 | use yii\data\ArrayDataProvider; | 
| 16 | 14 | use yii\db\ActiveRecord; | 
| 17 | 15 | use yii\web\Response; | 
| 18 | -use yii\widgets\ActiveForm; | |
| 19 | 16 | |
| 20 | 17 | /** | 
| 21 | 18 | * Class GridView | 
| @@ -105,6 +105,9 @@ | ||
| 105 | 105 | return $columns; | 
| 106 | 106 | } | 
| 107 | 107 | |
| 108 | + /** | |
| 109 | + * @param string $name | |
| 110 | + */ | |
| 108 | 111 |      public function getBooleanColumn($name) { | 
| 109 | 112 | return [ | 
| 110 | 113 | 'class' => BooleanColumn::class, | 
| @@ -9,15 +9,14 @@ | ||
| 9 | 9 | namespace execut\actions\action\adapter\gridView; | 
| 10 | 10 | |
| 11 | 11 | |
| 12 | -use yii\db\ActiveQuery; | |
| 13 | -use yii\helpers\ArrayHelper; | |
| 14 | 12 | use kartik\daterange\DateRangePicker; | 
| 15 | 13 | use kartik\detail\DetailView; | 
| 16 | 14 | use kartik\grid\ActionColumn; | 
| 17 | 15 | use kartik\grid\BooleanColumn; | 
| 18 | 16 | use kartik\grid\GridView; | 
| 19 | 17 | use yii\data\ActiveDataProvider; | 
| 20 | -use yii\helpers\Inflector; | |
| 18 | +use yii\db\ActiveQuery; | |
| 19 | +use yii\helpers\ArrayHelper; | |
| 21 | 20 | use yii\helpers\Url; | 
| 22 | 21 | use yii\web\JsExpression; | 
| 23 | 22 | |
| @@ -146,7 +146,7 @@ | ||
| 146 | 146 | 'actions' => [ | 
| 147 | 147 | 'class' => ActionColumn::className(), | 
| 148 | 148 | 'buttons' => [ | 
| 149 | -                    'view' => function () {}, | |
| 149 | +                    'view' => function() {}, | |
| 150 | 150 | ], | 
| 151 | 151 | ], | 
| 152 | 152 | ]; | 
| @@ -9,13 +9,8 @@ | ||
| 9 | 9 | |
| 10 | 10 | |
| 11 | 11 | use execut\actions\action\Adapter; | 
| 12 | -use execut\actions\action\adapter\helper\FormLoader; | |
| 13 | -use yii\helpers\ArrayHelper; | |
| 14 | -use execut\yii\helpers\Html; | |
| 15 | 12 | use yii\base\Model; | 
| 16 | -use yii\data\ArrayDataProvider; | |
| 17 | -use yii\web\Response; | |
| 18 | -use yii\widgets\ActiveForm; | |
| 13 | +use yii\helpers\ArrayHelper; | |
| 19 | 14 | |
| 20 | 15 | /** | 
| 21 | 16 | * Class GridView | 
| @@ -33,6 +33,9 @@ | ||
| 33 | 33 |          return '/' . implode('/', $parts); | 
| 34 | 34 | } | 
| 35 | 35 | |
| 36 | + /** | |
| 37 | + * @param \execut\actions\Action $action | |
| 38 | + */ | |
| 36 | 39 |      public static function createFromAction($action, $helper = null) { | 
| 37 | 40 | $controller = $action->controller; | 
| 38 | 41 |          if ($helper === null) { | 
| @@ -149,7 +149,7 @@ discard block | ||
| 149 | 149 | $editFormLabel = $this->getEditFormLabel($this->model); | 
| 150 | 150 | } | 
| 151 | 151 | |
| 152 | - $editFormLabel = strtr($this->labelTemplate, [ | |
| 152 | + $editFormLabel = strtr($this->labelTemplate, [ | |
| 153 | 153 |              '{label}' => $editFormLabel, | 
| 154 | 154 |              '{closeButton}' => $this->closeButton, | 
| 155 | 155 | ]); | 
| @@ -158,7 +158,7 @@ discard block | ||
| 158 | 158 | } | 
| 159 | 159 | |
| 160 | 160 |      protected function getCreateFormLabel() { | 
| 161 | - $m = $this->createFormLabel; | |
| 161 | + $m = $this->createFormLabel; | |
| 162 | 162 | |
| 163 | 163 | $t = $this->translate($m); | 
| 164 | 164 | |
| @@ -36,7 +36,7 @@ | ||
| 36 | 36 | } | 
| 37 | 37 | |
| 38 | 38 | /** | 
| 39 | - * @param $m | |
| 39 | + * @param string $m | |
| 40 | 40 | * @return string | 
| 41 | 41 | */ | 
| 42 | 42 | protected function translate($m): string | 
| @@ -11,7 +11,6 @@ | ||
| 11 | 11 | use execut\actions\action\adapter\viewRenderer\DetailView; | 
| 12 | 12 | use yii\bootstrap\Html; | 
| 13 | 13 | use yii\helpers\ArrayHelper; | 
| 14 | -use yii\web\Application; | |
| 15 | 14 | use yii\web\NotFoundHttpException; | 
| 16 | 15 | |
| 17 | 16 | class Edit extends Form | 
| @@ -265,7 +265,7 @@ | ||
| 265 | 265 | 'displayOnly' => false, | 
| 266 | 266 | 'type' => DetailView::INPUT_WIDGET, | 
| 267 | 267 | 'attribute' => 'id', | 
| 268 | -                'value' => function () use ($modelsNames) { | |
| 268 | +                'value' => function() use ($modelsNames) { | |
| 269 | 269 |                      return implode(', ', $modelsNames); | 
| 270 | 270 | }, | 
| 271 | 271 | 'widgetOptions' => [ | 
| @@ -8,12 +8,11 @@ | ||
| 8 | 8 | namespace execut\actions\action\adapter\viewRenderer; | 
| 9 | 9 | |
| 10 | 10 | |
| 11 | +use yii\bootstrap\Alert; | |
| 12 | +use yii\data\BaseDataProvider; | |
| 11 | 13 | use yii\db\ActiveRecord; | 
| 12 | 14 | use yii\helpers\ArrayHelper; | 
| 13 | 15 | use yii\helpers\Html; | 
| 14 | -use kartik\export\ExportMenu; | |
| 15 | -use yii\bootstrap\Alert; | |
| 16 | -use yii\data\BaseDataProvider; | |
| 17 | 16 | use yii\helpers\Url; | 
| 18 | 17 | use yii\web\JsExpression; | 
| 19 | 18 | |
| @@ -270,7 +270,7 @@ | ||
| 270 | 270 |  //                    '{create}' => ['class' => 'col-xs-8 text-right'], | 
| 271 | 271 | ], | 
| 272 | 272 | 'bulkActionsItems' => [ | 
| 273 | - 'General' => ['mass-update' => 'Mass edit',], | |
| 273 | + 'General' => ['mass-update' => 'Mass edit', ], | |
| 274 | 274 | ], | 
| 275 | 275 | 'bulkActionsOptions' => [ | 
| 276 | 276 | 'options' => [ | 
| @@ -181,6 +181,9 @@ | ||
| 181 | 181 | return $first . mb_substr($string, 1, null, $encoding); | 
| 182 | 182 | } | 
| 183 | 183 | |
| 184 | + /** | |
| 185 | + * @return string | |
| 186 | + */ | |
| 184 | 187 |      public function getUniqueId() { | 
| 185 | 188 |          if ($this->uniqueId) { | 
| 186 | 189 | return $this->uniqueId; |