bool COption::SetOptionInt( string module_id, string option_id, mixed value = "", mixed description = false )
The method SetOptionInt sets numeric value of the parameter option_id for the module_id. Returns true on success, or false otherwise.
Parameter | Description |
---|---|
module_id | Module ID. |
option_id | Parameter ID. |
value | Parameter value. Optional. Empty by default. |
description | Parameter description. Optional. False by default which means that the description is absent. |
<? // set the value of the field // "Additional menu parameters" // in the "Site explorer" module settings COption::SetOptionInt("fileman", "num_menu_param", 2); ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |