Total Complexity | 3 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class ErrorLogAdmin extends Admin |
||
|
|||
19 | { |
||
20 | protected $datagridValues = array( |
||
21 | '_page' => 1, |
||
22 | '_sort_order' => 'DESC', |
||
23 | '_sort_by' => 'date_created' |
||
24 | ); |
||
25 | |||
26 | /** |
||
27 | * @{inheritDoc} |
||
28 | */ |
||
29 | public function configureListFields(ListMapper $listMapper) |
||
30 | { |
||
31 | $listMapper |
||
32 | ->addIdentifier('date_created', null, array('route' => array('name' => 'show'))) |
||
33 | ->add('status') |
||
34 | ->add('url') |
||
35 | ->add('ip') |
||
36 | ->add('message') |
||
37 | ->add( |
||
38 | '_action', |
||
39 | 'actions', |
||
40 | array( |
||
41 | 'actions' => array( |
||
42 | 'show' => array(), |
||
43 | 'delete' => array() |
||
44 | ) |
||
45 | ) |
||
46 | ); |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @{inheritDoc} |
||
51 | */ |
||
52 | protected function configureShowFields(ShowMapper $show) |
||
53 | { |
||
54 | $show |
||
55 | ->add('date_created') |
||
56 | ->add('status') |
||
57 | ->add('url') |
||
58 | ->add('ip') |
||
59 | ->add('referer') |
||
60 | ->add('ua') |
||
61 | ->add('message'); |
||
62 | } |
||
63 | |||
64 | /** |
||
65 | * @{inheritdoc} |
||
66 | */ |
||
67 | protected function configureRoutes(RouteCollection $collection) |
||
70 | } |
||
71 | } |
||
72 |