PHP 클래스 Arcanedev\LogViewer\Http\Controllers\LogViewerController

저자: ARCANEDEV ([email protected])
상속: extends Arcanedev\LogViewer\Bases\Controller
파일 보기 프로젝트 열기: ARCANEDEV/LogViewer

보호된 프로퍼티들

프로퍼티 타입 설명
$perPage integer
$showRoute string

공개 메소드들

메소드 설명
__construct ( ) LogViewerController constructor.
delete ( Illuminate\Http\Request $request ) : Illuminate\Http\JsonResponse Delete a log.
download ( string $date ) : BinaryFileResponse Download the log
index ( ) : Illuminate\View\View Show the dashboard.
listLogs ( Illuminate\Http\Request $request ) : Illuminate\View\View List all logs.
show ( string $date ) : Illuminate\View\View Show the log.
showByLevel ( string $date, string $level ) : Illuminate\View\View | Illuminate\Http\RedirectResponse Filter the log entries by level.

보호된 메소드들

메소드 설명
calcPercentages ( array $total, array $names ) : array Calculate the percentage.
getLogOrFail ( string $date ) : Arcanedev\LogViewer\Entities\Log | null Get a log or fail
paginate ( array $data, Illuminate\Http\Request $request ) : Illuminate\Pagination\LengthAwarePaginator Paginate logs.
prepareChartData ( StatsTable $stats ) : string Prepare chart data.

메소드 상세

__construct() 공개 메소드

LogViewerController constructor.
public __construct ( )

calcPercentages() 보호된 메소드

Calculate the percentage.
protected calcPercentages ( array $total, array $names ) : array
$total array
$names array
리턴 array

delete() 공개 메소드

Delete a log.
public delete ( Illuminate\Http\Request $request ) : Illuminate\Http\JsonResponse
$request Illuminate\Http\Request
리턴 Illuminate\Http\JsonResponse

download() 공개 메소드

Download the log
public download ( string $date ) : BinaryFileResponse
$date string
리턴 Symfony\Component\HttpFoundation\BinaryFileResponse

getLogOrFail() 보호된 메소드

Get a log or fail
protected getLogOrFail ( string $date ) : Arcanedev\LogViewer\Entities\Log | null
$date string
리턴 Arcanedev\LogViewer\Entities\Log | null

index() 공개 메소드

Show the dashboard.
public index ( ) : Illuminate\View\View
리턴 Illuminate\View\View

listLogs() 공개 메소드

List all logs.
public listLogs ( Illuminate\Http\Request $request ) : Illuminate\View\View
$request Illuminate\Http\Request
리턴 Illuminate\View\View

paginate() 보호된 메소드

Paginate logs.
protected paginate ( array $data, Illuminate\Http\Request $request ) : Illuminate\Pagination\LengthAwarePaginator
$data array
$request Illuminate\Http\Request
리턴 Illuminate\Pagination\LengthAwarePaginator

prepareChartData() 보호된 메소드

Prepare chart data.
protected prepareChartData ( StatsTable $stats ) : string
$stats Arcanedev\LogViewer\Tables\StatsTable
리턴 string

show() 공개 메소드

Show the log.
public show ( string $date ) : Illuminate\View\View
$date string
리턴 Illuminate\View\View

showByLevel() 공개 메소드

Filter the log entries by level.
public showByLevel ( string $date, string $level ) : Illuminate\View\View | Illuminate\Http\RedirectResponse
$date string
$level string
리턴 Illuminate\View\View | Illuminate\Http\RedirectResponse

프로퍼티 상세

$perPage 보호되어 있는 프로퍼티

protected int $perPage
리턴 integer

$showRoute 보호되어 있는 프로퍼티

protected string $showRoute
리턴 string