Bitrix Site Manager

COption::GetOptionInt

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.

Parameters

ParameterDescription
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.

See Also

Example



<?
// obtain field "Default person in charge" 
// from the "Techsupport" module
$RESPONSIBLE_USER_ID = COption::GetOptionInt("support", "DEFAULT_RESPONSIBLE_ID"));
?>