int COption::GetOptionInt( string module_id, string option_id, mixed default_value = false )
The method GetOptionInt returns numeric value of the parameter option_id, belonging to module_id.
Parameter | Description |
---|---|
module_id | Module ID. |
option_id | Parameter ID. |
default_value | Default value. If default_value is not specified, it will be taken from the array with name ${module_id."_default_option"} specified in file /bitrix/modules/module_id/default_option.php. |
<? // obtain field "Default person in charge" // from the "Techsupport" module $RESPONSIBLE_USER_ID = COption::GetOptionInt("support", "DEFAULT_RESPONSIBLE_ID")); ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |