@@ -50,6 +50,9 @@ |
||
50 | 50 | return $this->render($this->getOrientationStorage()); |
51 | 51 | } |
52 | 52 | |
53 | + /** |
|
54 | + * @return string |
|
55 | + */ |
|
53 | 56 | public function getOrientationStorage() |
54 | 57 | { |
55 | 58 | return OrientationStorage::instantiate()->get(Yii::$app->controller->getRoute()); |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | use hipanel\grid\ReminderGridView; |
4 | -use hipanel\modules\stock\grid\PartGridView; |
|
5 | 4 | use hipanel\widgets\IndexLayoutSwitcher; |
6 | 5 | use hipanel\widgets\IndexPage; |
7 | 6 | use hipanel\widgets\Pjax; |
@@ -70,7 +70,6 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
73 | - * @param string $submodel the submodel that will be added to the ClassName |
|
74 | 73 | * @return string Main Model class name |
75 | 74 | */ |
76 | 75 | public static function modelClassName() |
@@ -201,11 +200,17 @@ discard block |
||
201 | 200 | return $this->render('index'); |
202 | 201 | } |
203 | 202 | |
203 | + /** |
|
204 | + * @param string $id |
|
205 | + */ |
|
204 | 206 | public function setInternalAction($id, $action) |
205 | 207 | { |
206 | 208 | $this->_internalActions[$id] = $action; |
207 | 209 | } |
208 | 210 | |
211 | + /** |
|
212 | + * @param string $id |
|
213 | + */ |
|
209 | 214 | public function hasInternalAction($id) |
210 | 215 | { |
211 | 216 | return array_key_exists($id, $this->_internalActions); |
@@ -6,7 +6,6 @@ discard block |
||
6 | 6 | use hipanel\actions\IndexAction; |
7 | 7 | use hipanel\actions\OrientationAction; |
8 | 8 | use hipanel\actions\RedirectAction; |
9 | -use hipanel\actions\RenderAction; |
|
10 | 9 | use hipanel\actions\RenderJsonAction; |
11 | 10 | use hipanel\actions\SmartCreateAction; |
12 | 11 | use hipanel\actions\SmartDeleteAction; |
@@ -15,10 +14,7 @@ discard block |
||
15 | 14 | use hipanel\actions\ViewAction; |
16 | 15 | use hipanel\models\Reminder; |
17 | 16 | use hipanel\widgets\ReminderTop; |
18 | -use Symfony\Component\EventDispatcher\Event; |
|
19 | 17 | use Yii; |
20 | -use yii\base\Widget; |
|
21 | -use yii\helpers\ArrayHelper; |
|
22 | 18 | use yii\web\NotFoundHttpException; |
23 | 19 | |
24 | 20 | class ReminderController extends \hipanel\base\CrudController |