Bitrix Site Manager

CStatEventType::GetDropdownList

CDBResult
CStatEventType::GetDropdownList(
 string order = "ORDER BY EVENT1, EVENT2"
)

The method GetDropdownList returns a list of event types for use in drop-down lists (the SelectBox function), or in multiple selection lists (the SelectBoxM function).

Parameters

Parameter Description
order The SQL code that can be used to set arbitrary sorting of the event type list.

Structure of the returned record

Array
(
    [REFERENCE_ID] => the event type ID
    [REFERENCE] => "[ID] (event1 / event2) event type name"
)

See Also

Example



<?
// single selection list
echo SelectBox(
    "SEARCHER_ID", 
    CStatEventType::GetDropdownList(), 
    "", 
    intval($SEARCHER_ID)
    );

// multiple selection list box with 20 visible items
echo SelectBoxM(
    "arSEARCHER_ID[]", 
    CStatEventType::GetDropdownList(), 
    $arSEARCHER_ID, 
    "", 
    false, 
    20
    );
?>