ILIAS
trunk Revision v11.0_alpha-1862-g4e205cb56d4
|
Database query for mails of a user. More...
Public Member Functions | |
__construct (private readonly int $user_id,) | |
withFolderId (?int $folder_id) | |
withSender (?string $sender) | |
withRecipients (?string $recipients) | |
withSubject (?string $subject) | |
withBody (?string $body) | |
withIsUnread (?bool $is_unread) | |
withIsSystem (?bool $is_system) | |
withHasAttachment (?bool $has_attachment) | |
withPeriodStart (?DateTimeImmutable $period_start) | |
withPeriodEnd (?DateTimeImmutable $period_end) | |
withFilteredIds (?array $filtered_ids) | |
withLimit (int $limit) | |
withOffset (int $offset) | |
withOrderColumn (?MailBoxOrderColumn $order_column) | |
withOrderDirection (?string $order_direction) | |
countUnread () | |
Count the number of unread mails with applied filter. More... | |
count () | |
Count the number of all mails with applied filter. More... | |
queryMailIds () | |
Get a list of mail ids. More... | |
query ($short) | |
Query for mail data with applied filter. More... | |
Private Member Functions | |
getFrom () | |
getWhere () | |
Private Attributes | |
const | DEFAULT_ORDER_COLUMN = MailBoxOrderColumn::SEND_TIME |
const | DEFAULT_ORDER_DIRECTION = Order::ASC |
ilDBInterface | $db |
int | $folder_id = null |
string | $sender = null |
string | $recipients = null |
string | $subject = null |
string | $body = null |
bool | $is_unread = null |
bool | $is_system = null |
bool | $has_attachment = null |
DateTimeImmutable | $period_start = null |
DateTimeImmutable | $period_end = null |
array | $filtered_ids = null |
int | $limit = 999999 |
int | $offset = 0 |
MailBoxOrderColumn | $order_column = self::DEFAULT_ORDER_COLUMN |
string | $order_direction = self::DEFAULT_ORDER_DIRECTION |
Database query for mails of a user.
Definition at line 33 of file MailBoxQuery.php.
ILIAS\Mail\Message\MailBoxQuery::__construct | ( | private readonly int | $user_id | ) |
ILIAS\Mail\Message\MailBoxQuery::count | ( | ) |
Count the number of all mails with applied filter.
Definition at line 205 of file MailBoxQuery.php.
References $res, ILIAS\Mail\Message\MailBoxQuery\getFrom(), and ILIAS\Mail\Message\MailBoxQuery\getWhere().
ILIAS\Mail\Message\MailBoxQuery::countUnread | ( | ) |
Count the number of unread mails with applied filter.
Definition at line 197 of file MailBoxQuery.php.
References ILIAS\Mail\Message\MailBoxQuery\withIsUnread().
|
private |
Definition at line 309 of file MailBoxQuery.php.
Referenced by ILIAS\Mail\Message\MailBoxQuery\count(), ILIAS\Mail\Message\MailBoxQuery\query(), and ILIAS\Mail\Message\MailBoxQuery\queryMailIds().
|
private |
Definition at line 316 of file MailBoxQuery.php.
References ILIAS\Mail\Message\MailBoxQuery\$body, $parts, ILIAS\Mail\Message\MailBoxQuery\$recipients, ILIAS\Mail\Message\MailBoxQuery\$subject, ilUserSearchOptions\_isEnabled(), ANONYMOUS_USER_ID, null, ilDBConstants\T_INTEGER, ilDBConstants\T_TEXT, and ilDBConstants\T_TIMESTAMP.
Referenced by ILIAS\Mail\Message\MailBoxQuery\count(), ILIAS\Mail\Message\MailBoxQuery\query(), and ILIAS\Mail\Message\MailBoxQuery\queryMailIds().
ILIAS\Mail\Message\MailBoxQuery::query | ( | $short | ) |
Query for mail data with applied filter.
bool | $short | get only data that is needed for a listing |
Definition at line 251 of file MailBoxQuery.php.
References ILIAS\Mail\Message\MailBoxQuery\$order_direction, $res, ILIAS\Mail\Message\MailBoxQuery\getFrom(), ILIAS\Mail\Message\MailBoxQuery\getWhere(), and null.
ILIAS\Mail\Message\MailBoxQuery::queryMailIds | ( | ) |
Get a list of mail ids.
Definition at line 227 of file MailBoxQuery.php.
References $res, ILIAS\Mail\Message\MailBoxQuery\getFrom(), ILIAS\Mail\Message\MailBoxQuery\getWhere(), and ILIAS\Repository\int().
ILIAS\Mail\Message\MailBoxQuery::withBody | ( | ?string | $body | ) |
ILIAS\Mail\Message\MailBoxQuery::withFilteredIds | ( | ?array | $filtered_ids | ) |
int[]|null | $filtered_ids |
Definition at line 146 of file MailBoxQuery.php.
References ILIAS\Mail\Message\MailBoxQuery\$filtered_ids.
ILIAS\Mail\Message\MailBoxQuery::withFolderId | ( | ?int | $folder_id | ) |
Definition at line 63 of file MailBoxQuery.php.
References ILIAS\Mail\Message\MailBoxQuery\$folder_id.
ILIAS\Mail\Message\MailBoxQuery::withHasAttachment | ( | ?bool | $has_attachment | ) |
Definition at line 119 of file MailBoxQuery.php.
References ILIAS\Mail\Message\MailBoxQuery\$has_attachment.
ILIAS\Mail\Message\MailBoxQuery::withIsSystem | ( | ?bool | $is_system | ) |
Definition at line 111 of file MailBoxQuery.php.
References ILIAS\Mail\Message\MailBoxQuery\$is_system.
ILIAS\Mail\Message\MailBoxQuery::withIsUnread | ( | ?bool | $is_unread | ) |
Definition at line 103 of file MailBoxQuery.php.
References ILIAS\Mail\Message\MailBoxQuery\$is_unread.
Referenced by ILIAS\Mail\Message\MailBoxQuery\countUnread().
ILIAS\Mail\Message\MailBoxQuery::withLimit | ( | int | $limit | ) |
ILIAS\Mail\Message\MailBoxQuery::withOffset | ( | int | $offset | ) |
Definition at line 162 of file MailBoxQuery.php.
References ILIAS\Mail\Message\MailBoxQuery\$offset.
ILIAS\Mail\Message\MailBoxQuery::withOrderColumn | ( | ?MailBoxOrderColumn | $order_column | ) |
Definition at line 170 of file MailBoxQuery.php.
References ILIAS\Mail\Message\MailBoxQuery\$order_column, and null.
ILIAS\Mail\Message\MailBoxQuery::withOrderDirection | ( | ?string | $order_direction | ) |
Definition at line 182 of file MailBoxQuery.php.
References ILIAS\Mail\Message\MailBoxQuery\$order_direction, ILIAS\Data\Order\ASC, and ILIAS\Data\Order\DESC.
ILIAS\Mail\Message\MailBoxQuery::withPeriodEnd | ( | ?DateTimeImmutable | $period_end | ) |
Definition at line 135 of file MailBoxQuery.php.
References ILIAS\Mail\Message\MailBoxQuery\$period_end.
ILIAS\Mail\Message\MailBoxQuery::withPeriodStart | ( | ?DateTimeImmutable | $period_start | ) |
Definition at line 127 of file MailBoxQuery.php.
References ILIAS\Mail\Message\MailBoxQuery\$period_start.
ILIAS\Mail\Message\MailBoxQuery::withRecipients | ( | ?string | $recipients | ) |
Definition at line 79 of file MailBoxQuery.php.
References ILIAS\Mail\Message\MailBoxQuery\$recipients.
ILIAS\Mail\Message\MailBoxQuery::withSender | ( | ?string | $sender | ) |
ILIAS\Mail\Message\MailBoxQuery::withSubject | ( | ?string | $subject | ) |
Definition at line 87 of file MailBoxQuery.php.
References ILIAS\Mail\Message\MailBoxQuery\$subject.
|
private |
Definition at line 43 of file MailBoxQuery.php.
Referenced by ILIAS\Mail\Message\MailBoxQuery\getWhere(), and ILIAS\Mail\Message\MailBoxQuery\withBody().
|
private |
Definition at line 38 of file MailBoxQuery.php.
|
private |
Definition at line 50 of file MailBoxQuery.php.
Referenced by ILIAS\Mail\Message\MailBoxQuery\withFilteredIds().
|
private |
Definition at line 39 of file MailBoxQuery.php.
Referenced by ILIAS\Mail\Message\MailBoxQuery\withFolderId().
|
private |
Definition at line 46 of file MailBoxQuery.php.
Referenced by ILIAS\Mail\Message\MailBoxQuery\withHasAttachment().
|
private |
Definition at line 45 of file MailBoxQuery.php.
Referenced by ILIAS\Mail\Message\MailBoxQuery\withIsSystem().
|
private |
Definition at line 44 of file MailBoxQuery.php.
Referenced by ILIAS\Mail\Message\MailBoxQuery\withIsUnread().
|
private |
Definition at line 51 of file MailBoxQuery.php.
Referenced by ILIAS\Mail\Message\MailBoxQuery\withLimit().
|
private |
Definition at line 52 of file MailBoxQuery.php.
Referenced by ILIAS\Mail\Message\MailBoxQuery\withOffset().
|
private |
Definition at line 53 of file MailBoxQuery.php.
Referenced by ILIAS\Mail\Message\MailBoxQuery\withOrderColumn().
|
private |
Definition at line 54 of file MailBoxQuery.php.
Referenced by ILIAS\Mail\Message\MailBoxQuery\query(), and ILIAS\Mail\Message\MailBoxQuery\withOrderDirection().
|
private |
Definition at line 48 of file MailBoxQuery.php.
Referenced by ILIAS\Mail\Message\MailBoxQuery\withPeriodEnd().
|
private |
Definition at line 47 of file MailBoxQuery.php.
Referenced by ILIAS\Mail\Message\MailBoxQuery\withPeriodStart().
|
private |
Definition at line 41 of file MailBoxQuery.php.
Referenced by ILIAS\Mail\Message\MailBoxQuery\getWhere(), and ILIAS\Mail\Message\MailBoxQuery\withRecipients().
|
private |
Definition at line 40 of file MailBoxQuery.php.
Referenced by ILIAS\Mail\Message\MailBoxQuery\withSender().
|
private |
Definition at line 42 of file MailBoxQuery.php.
Referenced by ILIAS\Mail\Message\MailBoxQuery\getWhere(), and ILIAS\Mail\Message\MailBoxQuery\withSubject().
|
private |
Definition at line 35 of file MailBoxQuery.php.
|
private |
Definition at line 36 of file MailBoxQuery.php.