ILIAS
trunk Revision v11.0_alpha-1831-g8615d53dadb
|
Public Member Functions | |
__construct (private readonly URLBuilder $url_builder, private readonly URLBuilderToken $action_token, private readonly URLBuilderToken $row_id_token, private readonly URLBuilderToken $folder_token, private readonly array $user_folders, private readonly MailFolderData $current_folder, private readonly MailFolderSearch $search, private readonly ilMail $mail, private readonly Factory $ui_factory, private readonly Renderer $ui_renderer, private readonly ilLanguage $lng, private readonly ServerRequestInterface $http_request, private readonly DataFactory $data_factory, private readonly Refinery $refinery, private readonly DateFormat $date_format, private readonly string $time_format, private readonly DateTimeZone $user_time_zone) | |
getComponent () | |
getRows (DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, ?array $filter_data, ?array $additional_parameters) | |
This is called by the table to retrieve rows; map data-records to rows using the $row_builder e.g. More... | |
getTotalRowCount (?array $filter_data, ?array $additional_parameters) | |
Mainly for the purpose of pagination-support, it is important to know about the total number of records available. More... | |
Data Fields | |
const | ACTION_SHOW = 'show' |
const | ACTION_EDIT = 'edit' |
const | ACTION_REPLY = 'reply' |
const | ACTION_FORWARD = 'forward' |
const | ACTION_DOWNLOAD_ATTACHMENT = 'download' |
const | ACTION_PRINT = 'print' |
const | ACTION_PROFILE = 'profile' |
const | ACTION_MOVE_TO = 'moveTo' |
const | ACTION_DELETE = 'delete' |
const | ACTION_MARK_READ = 'markRead' |
const | ACTION_MARK_UNREAD = 'marUnread' |
Private Member Functions | |
getColumnDefinition () | |
getActions () | |
getTableTitle () | |
getAvatar (MailRecordData $record) | |
getStatus (MailRecordData $record) | |
getSender (MailRecordData $record) | |
getRecipients (MailRecordData $record) | |
getSubject (MailRecordData $record) | |
getDate (MailRecordData $record) | |
getAttachments (MailRecordData $record) | |
Private Attributes | |
array | $avatars = [] |
Definition at line 47 of file MailFolderTableUI.php.
ILIAS\Mail\Folder\MailFolderTableUI::__construct | ( | private readonly URLBuilder | $url_builder, |
private readonly URLBuilderToken | $action_token, | ||
private readonly URLBuilderToken | $row_id_token, | ||
private readonly URLBuilderToken | $folder_token, | ||
private readonly array | $user_folders, | ||
private readonly MailFolderData | $current_folder, | ||
private readonly MailFolderSearch | $search, | ||
private readonly ilMail | $mail, | ||
private readonly Factory | $ui_factory, | ||
private readonly Renderer | $ui_renderer, | ||
private readonly ilLanguage | $lng, | ||
private readonly ServerRequestInterface | $http_request, | ||
private readonly DataFactory | $data_factory, | ||
private readonly Refinery | $refinery, | ||
private readonly DateFormat | $date_format, | ||
private readonly string | $time_format, | ||
private readonly DateTimeZone | $user_time_zone | ||
) |
MailFolderData[] | $user_folders |
Definition at line 68 of file MailFolderTableUI.php.
|
private |
Definition at line 174 of file MailFolderTableUI.php.
References ILIAS\Repository\lng().
Referenced by ILIAS\Mail\Folder\MailFolderTableUI\getComponent().
|
private |
Definition at line 436 of file MailFolderTableUI.php.
References ILIAS\Mail\Message\MailRecordData\hasAttachments().
Referenced by ILIAS\Mail\Folder\MailFolderTableUI\getRows().
|
private |
Definition at line 356 of file MailFolderTableUI.php.
References ILIAS\Mail\Folder\MailFolderTableUI\$avatars, ANONYMOUS_USER_ID, ilUtil\getImagePath(), ILIAS\Mail\Folder\MailFolderTableUI\getSender(), ILIAS\Mail\Message\MailRecordData\getSenderId(), and ilMailUserCache\getUserObjectById().
Referenced by ILIAS\Mail\Folder\MailFolderTableUI\getRows().
|
private |
Definition at line 107 of file MailFolderTableUI.php.
References ILIAS\Repository\lng(), and ilCalendarSettings\TIME_FORMAT_12.
Referenced by ILIAS\Mail\Folder\MailFolderTableUI\getComponent().
ILIAS\Mail\Folder\MailFolderTableUI::getComponent | ( | ) |
Definition at line 89 of file MailFolderTableUI.php.
References ILIAS\Data\Order\DESC, ILIAS\Mail\Folder\MailFolderTableUI\getActions(), ILIAS\Mail\Folder\MailFolderTableUI\getColumnDefinition(), and ILIAS\Mail\Folder\MailFolderTableUI\getTableTitle().
|
private |
Definition at line 431 of file MailFolderTableUI.php.
References ILIAS\Mail\Message\MailRecordData\getSendTime(), and null.
Referenced by ILIAS\Mail\Folder\MailFolderTableUI\getRows().
|
private |
Definition at line 410 of file MailFolderTableUI.php.
References ILIAS\Mail\Message\MailRecordData\getRcpTo(), and ILIAS\Repository\refinery().
Referenced by ILIAS\Mail\Folder\MailFolderTableUI\getRows().
ILIAS\Mail\Folder\MailFolderTableUI::getRows | ( | DataRowBuilder | $row_builder, |
array | $visible_column_ids, | ||
Range | $range, | ||
Order | $order, | ||
?array | $filter_data, | ||
?array | $additional_parameters | ||
) |
This is called by the table to retrieve rows; map data-records to rows using the $row_builder e.g.
yield $row_builder->buildStandardRow($row_id, $record).
string[] | $visible_column_ids |
Implements ILIAS\UI\Component\Table\DataRetrieval.
Definition at line 261 of file MailFolderTableUI.php.
References $data, ILIAS\Mail\Message\ATTACHMENTS, ILIAS\UI\Component\Table\DataRowBuilder\buildDataRow(), ILIAS\Mail\Folder\MailFolderTableUI\getAttachments(), ILIAS\Mail\Folder\MailFolderTableUI\getAvatar(), ILIAS\Mail\Folder\MailFolderTableUI\getDate(), ILIAS\Data\Range\getLength(), ILIAS\Mail\Folder\MailFolderTableUI\getRecipients(), ILIAS\Mail\Folder\MailFolderTableUI\getSender(), ILIAS\Data\Range\getStart(), ILIAS\Mail\Folder\MailFolderTableUI\getStatus(), ILIAS\Mail\Folder\MailFolderTableUI\getSubject(), ILIAS\Data\Order\join(), null, ilMailUserCache\preloadUserObjects(), and ILIAS\UI\examples\Symbol\Glyph\Search\search().
|
private |
Definition at line 384 of file MailFolderTableUI.php.
References ilMail\_getIliasMailerName(), ANONYMOUS_USER_ID, ILIAS\Mail\Message\MailRecordData\getImportName(), ILIAS\Mail\Message\MailRecordData\getMailId(), ILIAS\Mail\Message\MailRecordData\getSenderId(), ilMailUserCache\getUserObjectById(), ILIAS\Repository\lng(), and null.
Referenced by ILIAS\Mail\Folder\MailFolderTableUI\getAvatar(), and ILIAS\Mail\Folder\MailFolderTableUI\getRows().
|
private |
Definition at line 377 of file MailFolderTableUI.php.
References ILIAS\Mail\Message\MailRecordData\isRead(), and ILIAS\Repository\lng().
Referenced by ILIAS\Mail\Folder\MailFolderTableUI\getRows().
|
private |
Definition at line 417 of file MailFolderTableUI.php.
References ILIAS\Mail\Message\MailRecordData\getMailId(), ILIAS\Mail\Message\MailRecordData\getSubject(), and ILIAS\Repository\refinery().
Referenced by ILIAS\Mail\Folder\MailFolderTableUI\getRows().
|
private |
Definition at line 333 of file MailFolderTableUI.php.
References ILIAS\Repository\lng(), and ILIAS\UI\examples\Symbol\Glyph\Search\search().
Referenced by ILIAS\Mail\Folder\MailFolderTableUI\getComponent().
ILIAS\Mail\Folder\MailFolderTableUI::getTotalRowCount | ( | ?array | $filter_data, |
?array | $additional_parameters | ||
) |
Mainly for the purpose of pagination-support, it is important to know about the total number of records available.
Given the nature of a DataTable, which is, opposite to a PresentationTable, rather administrative than explorative, this information will increase user experience quite a bit. However, you may return null, if the call is to costly, but expect the View Control to look a little different in this case.
Make sure that potential filters or user restrictions are being applied to the count.
Implements ILIAS\UI\Component\Table\DataRetrieval.
Definition at line 328 of file MailFolderTableUI.php.
References ILIAS\UI\examples\Symbol\Glyph\Search\search().
|
private |
Definition at line 63 of file MailFolderTableUI.php.
Referenced by ILIAS\Mail\Folder\MailFolderTableUI\getAvatar().
const ILIAS\Mail\Folder\MailFolderTableUI::ACTION_DELETE = 'delete' |
Definition at line 58 of file MailFolderTableUI.php.
const ILIAS\Mail\Folder\MailFolderTableUI::ACTION_DOWNLOAD_ATTACHMENT = 'download' |
Definition at line 54 of file MailFolderTableUI.php.
const ILIAS\Mail\Folder\MailFolderTableUI::ACTION_EDIT = 'edit' |
Definition at line 51 of file MailFolderTableUI.php.
const ILIAS\Mail\Folder\MailFolderTableUI::ACTION_FORWARD = 'forward' |
Definition at line 53 of file MailFolderTableUI.php.
const ILIAS\Mail\Folder\MailFolderTableUI::ACTION_MARK_READ = 'markRead' |
Definition at line 59 of file MailFolderTableUI.php.
const ILIAS\Mail\Folder\MailFolderTableUI::ACTION_MARK_UNREAD = 'marUnread' |
Definition at line 60 of file MailFolderTableUI.php.
const ILIAS\Mail\Folder\MailFolderTableUI::ACTION_MOVE_TO = 'moveTo' |
Definition at line 57 of file MailFolderTableUI.php.
const ILIAS\Mail\Folder\MailFolderTableUI::ACTION_PRINT = 'print' |
Definition at line 55 of file MailFolderTableUI.php.
const ILIAS\Mail\Folder\MailFolderTableUI::ACTION_PROFILE = 'profile' |
Definition at line 56 of file MailFolderTableUI.php.
const ILIAS\Mail\Folder\MailFolderTableUI::ACTION_REPLY = 'reply' |
Definition at line 52 of file MailFolderTableUI.php.
const ILIAS\Mail\Folder\MailFolderTableUI::ACTION_SHOW = 'show' |
Definition at line 50 of file MailFolderTableUI.php.