updated-packages
This commit is contained in:
@@ -1,14 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Yajra\Datatables\Contracts;
|
||||
namespace Yajra\DataTables\Contracts;
|
||||
|
||||
/**
|
||||
* Interface DataTableEngineContract
|
||||
*
|
||||
* @package Yajra\Datatables\Contracts
|
||||
* @author Arjay Angeles <aqangeles@gmail.com>
|
||||
*/
|
||||
interface DataTableEngineContract
|
||||
interface DataTable
|
||||
{
|
||||
/**
|
||||
* Get results.
|
||||
@@ -20,14 +14,14 @@ interface DataTableEngineContract
|
||||
/**
|
||||
* Count results.
|
||||
*
|
||||
* @return integer
|
||||
* @return int
|
||||
*/
|
||||
public function count();
|
||||
|
||||
/**
|
||||
* Count total items.
|
||||
*
|
||||
* @return integer
|
||||
* @return int
|
||||
*/
|
||||
public function totalCount();
|
||||
|
||||
@@ -35,11 +29,11 @@ interface DataTableEngineContract
|
||||
* Set auto filter off and run your own filter.
|
||||
* Overrides global search.
|
||||
*
|
||||
* @param \Closure $callback
|
||||
* @param bool $globalSearch
|
||||
* @param callable $callback
|
||||
* @param bool $globalSearch
|
||||
* @return $this
|
||||
*/
|
||||
public function filter(\Closure $callback, $globalSearch = false);
|
||||
public function filter(callable $callback, $globalSearch = false);
|
||||
|
||||
/**
|
||||
* Perform global search.
|
||||
@@ -73,8 +67,7 @@ interface DataTableEngineContract
|
||||
* Organizes works.
|
||||
*
|
||||
* @param bool $mDataSupport
|
||||
* @param bool $orderFirst
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function make($mDataSupport = false, $orderFirst = false);
|
||||
public function make($mDataSupport = true);
|
||||
}
|
@@ -1,40 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Yajra\Datatables\Contracts;
|
||||
|
||||
/**
|
||||
* Interface DataTableButtonsContract.
|
||||
*
|
||||
* @package Yajra\Datatables\Contracts
|
||||
* @author Arjay Angeles <aqangeles@gmail.com>
|
||||
*/
|
||||
interface DataTableButtonsContract
|
||||
{
|
||||
/**
|
||||
* Export to excel file.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function excel();
|
||||
|
||||
/**
|
||||
* Export to CSV file.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function csv();
|
||||
|
||||
/**
|
||||
* Export to PDF file.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function pdf();
|
||||
|
||||
/**
|
||||
* Display printer friendly view.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function printPreview();
|
||||
}
|
@@ -1,47 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Yajra\Datatables\Contracts;
|
||||
|
||||
/**
|
||||
* Interface DataTableContract
|
||||
*
|
||||
* @package Yajra\Datatables\Contracts
|
||||
* @author Arjay Angeles <aqangeles@gmail.com>
|
||||
*/
|
||||
interface DataTableContract
|
||||
{
|
||||
/**
|
||||
* Render view.
|
||||
*
|
||||
* @param $view
|
||||
* @param array $data
|
||||
* @param array $mergeData
|
||||
* @return \Illuminate\Http\JsonResponse|\Illuminate\View\View
|
||||
*/
|
||||
public function render($view, $data = [], $mergeData = []);
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function ajax();
|
||||
|
||||
/**
|
||||
* @return \Yajra\Datatables\Html\Builder
|
||||
*/
|
||||
public function html();
|
||||
|
||||
/**
|
||||
* @return \Yajra\Datatables\Html\Builder
|
||||
*/
|
||||
public function builder();
|
||||
|
||||
/**
|
||||
* @return \Yajra\Datatables\Request
|
||||
*/
|
||||
public function request();
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Support\Collection
|
||||
*/
|
||||
public function query();
|
||||
}
|
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Yajra\Datatables\Contracts;
|
||||
|
||||
/**
|
||||
* Interface DataTableScopeContract.
|
||||
*
|
||||
* @package Yajra\Datatables\Contracts
|
||||
* @author Arjay Angeles <aqangeles@gmail.com>
|
||||
*/
|
||||
interface DataTableScopeContract
|
||||
{
|
||||
/**
|
||||
* Apply a query scope.
|
||||
*
|
||||
* @param \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder $query
|
||||
* @return mixed
|
||||
*/
|
||||
public function apply($query);
|
||||
}
|
Reference in New Issue
Block a user