PHP Class Arcanedev\LogViewer\Tables\StatsTable

Author: ARCANEDEV ([email protected])
Inheritance: extends Arcanedev\LogViewer\Bases\Table
Afficher le fichier Open project: ARCANEDEV/LogViewer Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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
Résultat StatsTable

prepareFooter() protected méthode

Prepare table footer.
protected prepareFooter ( array $data ) : array
$data array
Résultat array

prepareHeader() protected méthode

Prepare table header.
protected prepareHeader ( array $data ) : array
$data array
Résultat array

prepareRows() protected méthode

Prepare table rows.
protected prepareRows ( array $data ) : array
$data array
Résultat array

totals() public méthode

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

totalsJson() public méthode

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