Documentation

GetList

int
CEventLog::GetList(
 arOrder = Array
     ("ID" => "DESC"),
 arFilter = array(),
 $arNavParams = false
)

The method returns filtered and sorted list of log records. Non-static method.

Parameters

ParameterDescription Available from version
Order Array for sorting of results. Array("sorting field"=>"sorting direction" [, ...]). Field for sorting can have the following values:
  • ID - record ID;
  • TIMESTAMP_X - Time in Unix-format.
Sorting direction can have the following values:
  • asc - by ascension;
  • desc - by descension.
Filter Array("filtered field"=>"value" [, ...]) can have the following values:
  • SEVERITY - record priority degree. The following values are available: SECURITY or WARNING, for other values system will specify UNKNOWN.
  • AUDIT_TYPE_ID - event type ID.
  • MODULE_ID - module ID for log record.
  • ITEM_ID - added object ID (user, information security element, message ID, etc.)
  • REMOTE_ADDR - IP address, used for query.
  • USER_AGENT - browser.
  • REQUEST_URI - page URL.
  • SITE_ID - site ID connected to added event.
  • USER_ID - user ID.
  • GUEST_ID - user ID from statistics module
  • DESCRIPTION - log record description or technical information.
  • TIMESTAMP_X_1 - filter fields for date range selection range start. Format - dd.mm.yyyy hh:mm:ss
  • TIMESTAMP_X_2 - filter fields for date range selection, range end. Format - dd.mm.yyyy hh:mm:ss.
arNavParams Array of pagewise navigation settings.12.0.9
TIMESTAMP_X_1 и TIMESTAMP_X_2 - filter fields for date range selection. Format - dd.mm.yyyy hh:mm:ss

Example

<?

?>


© «Bitrix24», 2001-2024
Up