Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | protected function getRecordSummary() |
||
22 | { |
||
23 | /** @var DBField $owner */ |
||
24 | $owner = $this->getOwner(); |
||
25 | $html = '<div class="record-summary">'; |
||
26 | $html .= '<span class="record-summary-id">' . $owner->ID . '</span>'; |
||
27 | //created |
||
28 | $created = $owner->obj('Created'); |
||
29 | $html .= '<span class="record-summary-more">Created: ' . $created->Nice() . '(' . $created->Ago() . ')</span>'; |
||
30 | //last edited |
||
31 | $lastEdited = $owner->obj('LastEdited'); |
||
32 | $html .= '<span class="record-summary-more">Last Edited: ' . $lastEdited->Nice() . '(' . $lastEdited->Ago() . ')</span>'; |
||
33 | // close |
||
34 | $html .= '</div>'; |
||
35 | // prepare for output |
||
36 | $html = DBField::create_field('HTMLText', $html); |
||
37 | return $html; |
||
38 | } |
||
40 |