PHP Class Msieprawski\ResourceTable\Generators\Table

显示文件 Open project: msieprawski/resource-table

Public Methods

Method Description
__construct ( array $collection, array $config ) Sets collection data and config (per_page, columns, paginate.
body ( ) : string Returns table body
filterFormAction ( ) : string Returns filter form URL
head ( ) : string Returns table head
make ( ) : Illuminate\View\View Returns view object with table

Private Methods

Method Description
_dataForView ( ) : array Returns array with view data
_getColumns ( ) : array Returns array with Column objects

Method Details

__construct() public method

..)
public __construct ( array $collection, array $config )
$collection array
$config array

body() public method

Returns table body
public body ( ) : string
return string

filterFormAction() public method

Returns filter form URL
public filterFormAction ( ) : string
return string

head() public method

Returns table head
public head ( ) : string
return string

make() public method

Returns view object with table
public make ( ) : Illuminate\View\View
return Illuminate\View\View