2016-07-14 22:37:04 +02:00
|
|
|
<?php
|
2016-05-23 19:52:20 +03:00
|
|
|
|
2016-07-14 22:37:04 +02:00
|
|
|
namespace App\Ninja\Datatables;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class EntityDatatable
|
|
|
|
|
*/
|
2016-05-23 19:52:20 +03:00
|
|
|
class EntityDatatable
|
|
|
|
|
{
|
|
|
|
|
public $entityType;
|
2016-07-14 22:37:04 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @var bool
|
|
|
|
|
*/
|
2016-05-23 19:52:20 +03:00
|
|
|
public $isBulkEdit;
|
2016-07-14 22:37:04 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @var bool
|
|
|
|
|
*/
|
2016-05-23 19:52:20 +03:00
|
|
|
public $hideClient;
|
|
|
|
|
|
2016-07-14 22:37:04 +02:00
|
|
|
/**
|
|
|
|
|
* EntityDatatable constructor.
|
|
|
|
|
*
|
|
|
|
|
* @param bool $isBulkEdit
|
|
|
|
|
* @param bool $hideClient
|
|
|
|
|
*/
|
2016-05-23 19:52:20 +03:00
|
|
|
public function __construct($isBulkEdit = true, $hideClient = false)
|
|
|
|
|
{
|
|
|
|
|
$this->isBulkEdit = $isBulkEdit;
|
|
|
|
|
$this->hideClient = $hideClient;
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-14 22:37:04 +02:00
|
|
|
/**
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
2016-05-23 19:52:20 +03:00
|
|
|
public function columns()
|
|
|
|
|
{
|
|
|
|
|
return [];
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-14 22:37:04 +02:00
|
|
|
/**
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
2016-05-23 19:52:20 +03:00
|
|
|
public function actions()
|
|
|
|
|
{
|
|
|
|
|
return [];
|
|
|
|
|
}
|
|
|
|
|
}
|