3 declare(strict_types=1);
23 $f = $DIC->ui()->factory();
29 list($abbreviation, $login, $email, $name, $last_seen, $active) = $record;
30 $avatar = $ui_factory->symbol()->avatar()->letter($abbreviation);
31 return $ui_factory->entity()->standard($name, $avatar)
33 $ui_factory->listing()->property()
34 ->withProperty(
'login', $login)
35 ->withProperty(
'mail', $email,
false)
38 $ui_factory->listing()->property()
40 [
'last seen', $last_seen],
41 [
'active', $active ?
'yes' :
'no'],
49 [
'jw',
'jimmywilson',
'jimmywilson@example.com',
'Jimmy Wilson',
'2022-03-15 13:20:10',
true],
50 [
'eb',
'emilybrown',
'emilybrown@example.com',
'Emily Brown',
'2022-03-16 10:45:32',
false],
51 [
'ms',
'michaelscott',
'michaelscott@example.com',
'Michael Scott',
'2022-03-14 08:15:05',
true],
52 [
'kj',
'katiejones',
'katiejones@example.com',
'Katie Jones',
'2022-03-17 15:30:50',
true]
55 public function getEntities(
58 ?array $additional_parameters
60 foreach ($this->data as $usr) {
61 yield $mapping->
map($usr);
66 $listing =
$f->listing()->entity()->standard($record_to_entity)
This describes an Entity.
withMainDetails(PropertyListing|Legacy ... $main_details)
Main Details should provide a quick differentiation or choice on the entity.
base()
expected output: > ILIAS shows the rendered Component.
This is to accumulate/consolidate the data to be shown in the listing.
Listings will have to map records to Entities.
A simple class to express a naive range of whole positive numbers.
Hand a record over to RecordToEntity and factor an Entity.