logsCtrl
extends jController
in package
Lizmap administration : logs.
Tags
Table of Contents
Properties
- $pluginParams : mixed
Methods
- counter() : jResponseHtml
- Display the logs counter.
- detail() : jResponseHtml
- Display the detailed logs.
- emptyCounter() : jResponseRedirect
- Empty the counter logs table.
- emptyDetail() : jResponseRedirect
- Empty the detail logs table.
- eraseError() : jResponseRedirect
- Erase the error log file.
- export() : jResponseBinary|jResponseRedirect
- Export the detailed logs in CSV.
- index() : jResponseHtml
- Display a summary of the logs.
- logLinesDisplayTextArea() : int
- Compute the height of the text area to use by default.
Properties
$pluginParams
public
mixed
$pluginParams
= array('*' => array('jacl2.right' => 'lizmap.admin.lizmap.log.view'), 'emptyCounter' => array('jacl2.right.and' => array('lizmap.admin.lizmap.log.view', 'lizmap.admin.lizmap.log.delete')), 'emptyDetail' => array('jacl2.right.and' => array('lizmap.admin.lizmap.log.view', 'lizmap.admin.lizmap.log.delete')), 'eraseError' => array('jacl2.right.and' => array('lizmap.admin.lizmap.log.view', 'lizmap.admin.lizmap.log.delete')))
Methods
counter()
Display the logs counter.
public
counter() : jResponseHtml
Return values
jResponseHtmldetail()
Display the detailed logs.
public
detail() : jResponseHtml
Return values
jResponseHtmlemptyCounter()
Empty the counter logs table.
public
emptyCounter() : jResponseRedirect
Return values
jResponseRedirectemptyDetail()
Empty the detail logs table.
public
emptyDetail() : jResponseRedirect
Return values
jResponseRedirecteraseError()
Erase the error log file.
public
eraseError() : jResponseRedirect
Return values
jResponseRedirectexport()
Export the detailed logs in CSV.
public
export() : jResponseBinary|jResponseRedirect
Return values
jResponseBinary|jResponseRedirectindex()
Display a summary of the logs.
public
index() : jResponseHtml
Return values
jResponseHtmllogLinesDisplayTextArea()
Compute the height of the text area to use by default.
private
logLinesDisplayTextArea(string $log) : int
Parameters
- $log : string
-
the log content
Return values
int —the number of lines for the text area