CMS
Version 3.9
error_log.inc
Go to the documentation of this file.
1
<?php
2
Fakoli::using
(
"error_log"
,
"user"
);
3
Fakoli::usingFeature
(
"data_view"
,
"filter_form"
);
4
5
$menu_item
=
"Error Log"
;
6
7
$title
=
"Error Log"
;
8
9
$err
=
new
ErrorLog
();
10
$err
->filter =
new
InclusionFilter(
"timestamp"
);
11
12
$filterForm
=
new
FilterForm(
$err
);
13
$range
=
new
DateRangeFilterRenderer(
$filterForm
,
"timestamp"
,
"timestamp"
);
14
15
$errors
= Query::create(
ErrorLog
,
$filterForm
->getConstraint().
" ORDER BY timestamp DESC"
)->execute();
16
17
$filterForm
->drawForm();
18
19
$table
=
new
DataListView(
$errors
,
"error_log"
);
20
$table
->column(
"Date"
,
"<a href='error_details?error_log_id={error_log_id}'>{timestamp}</a>"
,
true
)
21
->column(
"User"
,
"{getUserFullName()}"
,
true
)
22
->column(
"URI"
,
"{uri:htmlSafe}"
,
true
)
23
->column(
"Message"
,
"{message:htmlSafe}"
,
true
);
24
25
$table
->filter =
true
;
26
$table
->sortable =
true
;
27
$table
->pageSize = 20;
28
$table
->excelFile =
"error_log"
;
29
$table
->emptyMessage =
"No Errors have been logged yet."
;
30
31
$script
.=
$table
->writeScript();
32
33
$table
->drawView();
34
?>
$errors
$errors
Definition:
error_log.inc:15
$filterForm
$filterForm
Definition:
error_log.inc:12
$menu_item
$menu_item
Definition:
error_log.inc:5
$range
$range
Definition:
error_log.inc:13
$err
$err
Definition:
error_log.inc:9
$title
$title
Definition:
error_log.inc:7
$table
$table
Definition:
error_log.inc:19
$script
$script
Definition:
error_log.inc:31
ErrorLog
Definition:
error_log.inc:9
Fakoli\usingFeature
static usingFeature()
Uses the specified framework feature(s).
Definition:
core.inc:388
Fakoli\using
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition:
core.inc:116
code
cms.sonjara.com
cms
components
error_log
admin
error_log.inc
Generated on Tue Mar 23 2021 15:36:13 for CMS by
1.9.1