PHP Class Arcanedev\LogViewer\Tables\StatsTable

Author: ARCANEDEV ([email protected])
Inheritance: extends Arcanedev\LogViewer\Bases\Table
ファイルを表示 Open project: ARCANEDEV/LogViewer Class Usage Examples

Public Methods

Method Description
make ( array $data, Arcanedev\LogViewer\Contracts\Utilities\LogLevels $levels, string | null $locale = null ) : StatsTable Make a stats table instance.
totals ( string | null $locale = null ) : Collection Get totals.
totalsJson ( string | null $locale = null ) : string Get json totals data.

Protected Methods

Method Description
prepareFooter ( array $data ) : array Prepare table footer.
prepareHeader ( array $data ) : array Prepare table header.
prepareRows ( array $data ) : array Prepare table rows.

Method Details

make() public static method

Make a stats table instance.
public static make ( array $data, Arcanedev\LogViewer\Contracts\Utilities\LogLevels $levels, string | null $locale = null ) : StatsTable
$data array
$levels Arcanedev\LogViewer\Contracts\Utilities\LogLevels
$locale string | null
return StatsTable

prepareFooter() protected method

Prepare table footer.
protected prepareFooter ( array $data ) : array
$data array
return array

prepareHeader() protected method

Prepare table header.
protected prepareHeader ( array $data ) : array
$data array
return array

prepareRows() protected method

Prepare table rows.
protected prepareRows ( array $data ) : array
$data array
return array

totals() public method

Get totals.
public totals ( string | null $locale = null ) : Collection
$locale string | null
return Illuminate\Support\Collection

totalsJson() public method

Get json totals data.
public totalsJson ( string | null $locale = null ) : string
$locale string | null
return string