bluzphp /
module-phones
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * @namespace |
||
| 5 | */ |
||
| 6 | |||
| 7 | namespace Application\UsersPhones; |
||
| 8 | |||
| 9 | use Bluz\Grid\Source\SelectSource; |
||
|
0 ignored issues
–
show
|
|||
| 10 | |||
| 11 | /** |
||
| 12 | * Grid based on Table |
||
| 13 | * |
||
| 14 | * @package Application\UsersPhones |
||
| 15 | * |
||
| 16 | * @author Anton Shevchuk |
||
| 17 | * @created 2017-11-21 18:26:26 |
||
| 18 | */ |
||
| 19 | class Grid extends \Bluz\Grid\Grid |
||
|
0 ignored issues
–
show
The type
Bluz\Grid\Grid was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $uid = 'usersphones'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return void |
||
| 28 | * @throws \Bluz\Grid\GridException |
||
| 29 | */ |
||
| 30 | public function init(): void |
||
| 31 | { |
||
| 32 | // Current table as source of grid |
||
| 33 | $adapter = new SelectSource(); |
||
| 34 | $adapter->setSource(Table::select()); |
||
| 35 | |||
| 36 | $this->setAdapter($adapter); |
||
| 37 | $this->setDefaultLimit(25); |
||
| 38 | $this->setAllowFilters([ |
||
| 39 | 'id', |
||
| 40 | 'userId', |
||
| 41 | 'number', |
||
| 42 | 'status', |
||
| 43 | 'created', |
||
| 44 | 'updated', |
||
| 45 | ]); |
||
| 46 | $this->setAllowOrders([ |
||
| 47 | 'id', |
||
| 48 | 'userId', |
||
| 49 | 'number', |
||
| 50 | 'status', |
||
| 51 | 'created', |
||
| 52 | 'updated', |
||
| 53 | ]); |
||
| 54 | } |
||
| 55 | } |
||
| 56 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths