@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | * Returns component name. |
| 21 | 21 | * If empty, tag_name will be used instead |
| 22 | 22 | * |
| 23 | - * @return string|null |
|
| 23 | + * @return string |
|
| 24 | 24 | */ |
| 25 | 25 | public function getName() |
| 26 | 26 | { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | /** |
| 78 | 78 | * Returns html inside tag. |
| 79 | 79 | * |
| 80 | - * @return string|null |
|
| 80 | + * @return string |
|
| 81 | 81 | */ |
| 82 | 82 | public function getContent() |
| 83 | 83 | { |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | /** |
| 55 | 55 | * Returns filters value. |
| 56 | 56 | * |
| 57 | - * @return mixed |
|
| 57 | + * @return string |
|
| 58 | 58 | */ |
| 59 | 59 | public function getValue() |
| 60 | 60 | { |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | <b>Show/Hide all</b> |
| 23 | 23 | </label> |
| 24 | 24 | </li> |
| 25 | - <?php foreach($columns as $column): |
|
| 25 | + <?php foreach ($columns as $column): |
|
| 26 | 26 | /** @var Nayjest\Grids\FieldConfig $column */ |
| 27 | 27 | ?> |
| 28 | 28 | <li> |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author: Vitaliy Ofat <[email protected]> |
|
| 4 | - * |
|
| 5 | - * @var $grid Nayjest\Grids\Grid |
|
| 6 | - */ |
|
| 3 | + * @author: Vitaliy Ofat <[email protected]> |
|
| 4 | + * |
|
| 5 | + * @var $grid Nayjest\Grids\Grid |
|
| 6 | + */ |
|
| 7 | 7 | use Nayjest\Grids\Components\CsvExport; |
| 8 | 8 | ?> |
| 9 | 9 | <span> |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author: Vitaliy Ofat <[email protected]> |
|
| 4 | - * |
|
| 5 | - * @var $grid Nayjest\Grids\Grid |
|
| 6 | - */ |
|
| 3 | + * @author: Vitaliy Ofat <[email protected]> |
|
| 4 | + * |
|
| 5 | + * @var $grid Nayjest\Grids\Grid |
|
| 6 | + */ |
|
| 7 | 7 | use Nayjest\Grids\Components\ExcelExport; |
| 8 | 8 | ?> |
| 9 | 9 | <span> |
@@ -25,11 +25,11 @@ discard block |
||
| 25 | 25 | </label> |
| 26 | 26 | </div> |
| 27 | 27 | </li> |
| 28 | - <?php foreach($component->getVariants() as $val => $label): ?> |
|
| 29 | - <?php if(is_array($label)):?> |
|
| 28 | + <?php foreach ($component->getVariants() as $val => $label): ?> |
|
| 29 | + <?php if (is_array($label)):?> |
|
| 30 | 30 | <?php |
| 31 | 31 | $class = ''; |
| 32 | - if(array_intersect(array_keys($label['values']), array_keys($value))) { |
|
| 32 | + if (array_intersect(array_keys($label['values']), array_keys($value))) { |
|
| 33 | 33 | $class = ' in'; |
| 34 | 34 | } |
| 35 | 35 | ?> |
@@ -51,12 +51,12 @@ discard block |
||
| 51 | 51 | </label> |
| 52 | 52 | </div> |
| 53 | 53 | <?php endif ?> |
| 54 | - <?php foreach($label['values'] as $option_val=>$option_label):?> |
|
| 54 | + <?php foreach ($label['values'] as $option_val=>$option_label):?> |
|
| 55 | 55 | <div> |
| 56 | 56 | <label> |
| 57 | 57 | <input |
| 58 | 58 | type="checkbox" |
| 59 | - <?php if(!empty($value[$option_val])) echo "checked='checked'" ?> |
|
| 59 | + <?php if (!empty($value[$option_val])) echo "checked='checked'" ?> |
|
| 60 | 60 | name="<?= $component->getInputName() ?>[<?= $option_val ?>]" |
| 61 | 61 | > |
| 62 | 62 | <span><?= $option_label ?></span> |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | <label> |
| 71 | 71 | <input |
| 72 | 72 | type="checkbox" |
| 73 | - <?php if(!empty($value[$val])) echo "checked='checked'" ?> |
|
| 73 | + <?php if (!empty($value[$val])) echo "checked='checked'" ?> |
|
| 74 | 74 | name="<?= $component->getInputName() ?>[<?= $val ?>]" |
| 75 | 75 | > |
| 76 | 76 | <span><?= $label ?></span> |
@@ -1,7 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** @var Nayjest\Grids\Components\SelectFilter $component */ |
| 3 | 3 | $value = $component->getValue(); |
| 4 | -if (!is_array($value)) $value = []; |
|
| 4 | +if (!is_array($value)) { |
|
| 5 | + $value = []; |
|
| 6 | +} |
|
| 5 | 7 | $id = uniqid(); |
| 6 | 8 | ?> |
| 7 | 9 | <div class="btn-group"> |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | /** @var Nayjest\Grids\Components\Filter $component */ |
| 3 | 3 | $id = uniqid(); |
| 4 | 4 | ?> |
| 5 | -<?php if($component->getLabel()): ?> |
|
| 5 | +<?php if ($component->getLabel()): ?> |
|
| 6 | 6 | <span><?= $component->getLabel() ?></span> |
| 7 | 7 | <?php endif ?> |
| 8 | 8 | <input |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | /** @var Nayjest\Grids\Components\Filters\DateRangePicker $component */ |
| 3 | 3 | $id = uniqid(); |
| 4 | 4 | ?> |
| 5 | -<?php if($component->getLabel()): ?> |
|
| 5 | +<?php if ($component->getLabel()): ?> |
|
| 6 | 6 | <span> |
| 7 | 7 | <span class="glyphicon glyphicon-calendar"></span> |
| 8 | 8 | <?= $component->getLabel() ?> |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** @var Nayjest\Grids\Components\Filter $component */ |
| 3 | 3 | ?> |
| 4 | -<?php if($component->getLabel()): ?> |
|
| 4 | +<?php if ($component->getLabel()): ?> |
|
| 5 | 5 | <span><?= $component->getLabel() ?></span> |
| 6 | 6 | <?php endif ?> |
| 7 | 7 | <input |