new: [indexTable] added 3 new simple elements

- custom_element -> loop the data through an element set via element_path
- model -> for the various log indeces, format the log entry's model entry as MODEL #MODEL_ID
- time -> loop the data through the time helper's time() function
pull/8963/head
iglocska 2022-12-24 06:27:01 +01:00
parent 6703d82ad0
commit f551639a96
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
3 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1 @@
<?= $this->element($field['element_path'], ['item' => $row]) ?>

View File

@ -0,0 +1,3 @@
<?php
$data = Hash::extract($row, $field['data_path']);
echo h($data['model']) . ' #' . intval($data['model_id']);

View File

@ -0,0 +1,3 @@
<?php
$time = Hash::extract($row, $field['data_path'])[0];
echo $this->Time->time($time);