GetMessageList
Description and parameters
record set
CTicket::GetMessageList(
varchar &by,
varchar &order,
array arFilter=array(),
boolean &is_filtered,
char(1) CHECK_RIGHTS="Y",
char(1) get_user_name="Y"
);
Method is designed for getting list of messages in a single query. Non-static method.
Method parameters
Parameter | Description | Available from version | Deleted starting from version |
---|---|---|---|
TICKET_ID | 3.3.16 | ||
by | Identifier allowing to set field name for sorting. The following values are permitted:
| 3.3.16 | |
order | Sort order. The following values are permitted:
| 3.3.16 | |
arFilter | Array for value filtering. Array allows the following indexes:
| 3.3.11 | |
is_filtered | Variable is "true" in case the list of results is filtered by a specific criteria; or false otherwise. Updated to isFiltered from version 12.0.0 | 3.3.16 | |
CHECK_RIGHTS | Flag for required access permission check for current user:
| 3.3.11 | |
get_user_name | Optional parameter. "Y" - when retrieving the message, selects such fields as OWNER_EMAIL, OWNER_LOGIN, OWNER_NAME, CREATED_EMAIL, CREATED_LOGIN, CREATED_NAME, MODIFIED_EMAIL, MODIFIED_LOGIN, MODIFIED_NAME, describing users associated with this message (by default); "N" - abovelisted fields won't be selected, but this will expedite method performance. Updated to getUserName starting from version 12.0.0 | 3.3.16 | |
old_call | Optional parameter. Default value - "N". | 3.3.15 | 3.3.16 |
Examples
<? $mess = CTicket::GetMessageList($a, $b, array("TICKET_ID" => $ID, "TICKET_ID_EXACT_MATCH" => "Y"), $c, $CHECK_RIGHTS); $mess->NavStart(50); $messages = $mess->SelectedRowsCount(); ?>
© «Bitrix24», 2001-2024