GetDropdownList
CDBResult CModule::GetDropdownList( string sql = "ORDER BY ID" )
The method returns a list of modules as the CDBResult class object which can be passed to functions SelectBox or SelectBoxM used to emit the
Parameters
Parameter | Description |
---|---|
sql | SQL code that is be applied to specify sorting of selected module IDs. Optional. By default, IDs are sorted in descending order by the field ID. |
See Also
Examples of use
<? $rs = CModule::GetDropdownList(); echo SelectBoxFromArray("module_id", $rs, $module_id); ?>
© «Bitrix24», 2001-2024