Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/UI/Actions/ActionsPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
namespace App\UI\Actions;

use App\UI\AbstractPresenter;
use Ublaboo\DataGrid\Column\Action\Confirmation\StringConfirmation;
use Ublaboo\DataGrid\DataGrid;
use Contributte\Datagrid\Column\Action\Confirmation\StringConfirmation;
use Contributte\Datagrid\Datagrid;

class ActionsPresenter extends AbstractPresenter
{

public function createComponentGrid(): DataGrid
{
$grid = new DataGrid();
$grid = new Datagrid();

$grid->setDataSource($this->dibiConnection->select('*')->from('users'));

Expand Down
4 changes: 2 additions & 2 deletions app/UI/Add/AddPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

use App\Model\Utils\DateTime;
use App\UI\AbstractPresenter;
use Ublaboo\DataGrid\DataGrid;
use Contributte\Datagrid\Datagrid;

final class AddPresenter extends AbstractPresenter
{

public function createComponentGrid(): DataGrid
{
$grid = new DataGrid();
$grid = new Datagrid();

$grid->setDataSource($this->dibiConnection->select('*')->from('users'));

Expand Down
12 changes: 6 additions & 6 deletions app/UI/Columns/ColumnsPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
use App\Model\Utils\DateTime;
use App\Model\Utils\Types;
use App\UI\AbstractPresenter;
use Contributte\Datagrid\AggregationFunction\IAggregationFunction;
use Contributte\Datagrid\AggregationFunction\IMultipleAggregationFunction;
use Contributte\Datagrid\Column\ColumnLink;
use Contributte\Datagrid\Column\ColumnStatus;
use Contributte\Datagrid\Datagrid;
use Dibi\Fluent;
use Dibi\Row;
use Ublaboo\DataGrid\AggregationFunction\IAggregationFunction;
use Ublaboo\DataGrid\AggregationFunction\IMultipleAggregationFunction;
use Ublaboo\DataGrid\Column\ColumnLink;
use Ublaboo\DataGrid\Column\ColumnStatus;
use Ublaboo\DataGrid\DataGrid;
use UnexpectedValueException;

final class ColumnsPresenter extends AbstractPresenter
{

public function createComponentGrid(): DataGrid
{
$grid = new DataGrid();
$grid = new Datagrid();

$grid->setDefaultSort(['id' => 'ASC']);

Expand Down
4 changes: 2 additions & 2 deletions app/UI/Edit/EditPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@

use App\Model\Utils\DateTime;
use App\UI\AbstractPresenter;
use Contributte\Datagrid\Datagrid;
use Dibi\Row;
use Nette\Forms\Container;
use Nette\Utils\Html;
use Ublaboo\DataGrid\DataGrid;

final class EditPresenter extends AbstractPresenter
{

public function createComponentGrid(): DataGrid
{
$grid = new DataGrid();
$grid = new Datagrid();

$grid->setDataSource($this->dibiConnection->select('*')->from('users'));

Expand Down
15 changes: 11 additions & 4 deletions app/UI/Export/ExportPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
namespace App\UI\Export;

use App\UI\AbstractPresenter;
use Ublaboo\DataGrid\Column\ColumnText;
use Ublaboo\DataGrid\DataGrid;
use Contributte\Datagrid\Column\ColumnText;
use Contributte\Datagrid\Datagrid;

final class ExportPresenter extends AbstractPresenter
{

public function createComponentGrid(): DataGrid
public function createComponentGrid(): Datagrid
{
$grid = new DataGrid();
$grid = new Datagrid();

$grid->setDataSource($this->dibiConnection->select('*')->from('users'));

Expand Down Expand Up @@ -51,6 +51,13 @@
$columnEven,
]);

$grid->addExportExcel('Excel export', 'examples-all.xlsx')

Check failure on line 54 in app/UI/Export/ExportPresenter.php

View workflow job for this annotation

GitHub Actions / Phpstan / Phpstan (8.4)

Call to an undefined method Contributte\Datagrid\Datagrid::addExportExcel().
->setTitle('Excel export')
->setColumns([
$columnName,
$columnEven,
]);

return $grid;
}

Expand Down
4 changes: 2 additions & 2 deletions app/UI/Filters/FiltersPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@

use App\Model\Utils\DateTime;
use App\UI\AbstractPresenter;
use Contributte\Datagrid\Datagrid;
use Dibi\Fluent;
use Dibi\Row;
use Nette\Utils\ArrayHash;
use Ublaboo\DataGrid\DataGrid;

final class FiltersPresenter extends AbstractPresenter
{

public function createComponentGrid(): DataGrid
{
$grid = new DataGrid();
$grid = new Datagrid();

$grid->setDataSource($this->dibiConnection->select('*')->from('users'));

Expand Down
4 changes: 2 additions & 2 deletions app/UI/GroupActions/GroupActionsPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
namespace App\UI\GroupActions;

use App\UI\AbstractPresenter;
use Ublaboo\DataGrid\DataGrid;
use Contributte\Datagrid\Datagrid;

class GroupActionsPresenter extends AbstractPresenter
{

public function createComponentGrid(): DataGrid
{
$grid = new DataGrid();
$grid = new Datagrid();

$grid->setDataSource($this->dibiConnection->select('*')->from('users'));

Expand Down
4 changes: 2 additions & 2 deletions app/UI/Home/HomePresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

use App\Model\Utils\DateTime;
use App\UI\AbstractPresenter;
use Contributte\Datagrid\Datagrid;
use Dibi\Row;
use Ublaboo\DataGrid\DataGrid;

final class HomePresenter extends AbstractPresenter
{

public function createComponentGrid(): DataGrid
{
$grid = new DataGrid();
$grid = new Datagrid();

$grid->setDataSource($this->dibiConnection->select('*')->from('users'));

Expand Down
4 changes: 2 additions & 2 deletions app/UI/ItemDetail/ItemDetailPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
namespace App\UI\ItemDetail;

use App\UI\AbstractPresenter;
use Ublaboo\DataGrid\DataGrid;
use Contributte\Datagrid\Datagrid;

final class ItemDetailPresenter extends AbstractPresenter
{

public function createComponentGrid(): DataGrid
{
$grid = new DataGrid();
$grid = new Datagrid();

$grid->setDataSource($this->dibiConnection->select('*')->from('users'));

Expand Down
6 changes: 3 additions & 3 deletions app/UI/Localization/LocalizationPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

use App\Model\Utils\DateTime;
use App\UI\AbstractPresenter;
use Contributte\Datagrid\Datagrid;
use Contributte\Datagrid\Localization\SimpleTranslator;
use Dibi\Row;
use Ublaboo\DataGrid\DataGrid;
use Ublaboo\DataGrid\Localization\SimpleTranslator;

final class LocalizationPresenter extends AbstractPresenter
{

public function createComponentGrid(): DataGrid
{
$grid = new DataGrid();
$grid = new Datagrid();

$grid->setDataSource($this->dibiConnection->select('*')->from('users'));

Expand Down
6 changes: 3 additions & 3 deletions app/UI/Row/RowPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
namespace App\UI\Row;

use App\UI\AbstractPresenter;
use Ublaboo\DataGrid\Column\Action\Confirmation\StringConfirmation;
use Ublaboo\DataGrid\DataGrid;
use Contributte\Datagrid\Column\Action\Confirmation\StringConfirmation;
use Contributte\Datagrid\Datagrid;

final class RowPresenter extends AbstractPresenter
{

public function createComponentGrid(): DataGrid
{
$grid = new DataGrid();
$grid = new Datagrid();

$grid->setDataSource($this->dibiConnection->select('*')->from('users'));

Expand Down
6 changes: 3 additions & 3 deletions app/UI/TreeView/TreeViewPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
namespace App\UI\TreeView;

use App\UI\AbstractPresenter;
use Contributte\Datagrid\Column\Action\Confirmation\StringConfirmation;
use Contributte\Datagrid\Datagrid;
use Dibi\Fluent;
use Ublaboo\DataGrid\Column\Action\Confirmation\StringConfirmation;
use Ublaboo\DataGrid\DataGrid;

final class TreeViewPresenter extends AbstractPresenter
{

public function createComponentGrid(): DataGrid
{
$grid = new DataGrid();
$grid = new Datagrid();

$join = $this->dibiConnection->select('COUNT(id) AS count, parent_category_id')
->from('categories')
Expand Down
Loading