Bitrix Site Manager

CPageOption::GetOptionInt

int
CPageOption::GetOptionInt(
 string module_id,
 string page_option_id,
 mixed default_value = false
)

The GetOptionInt method returns the numeric value of the parameter page_option_id, belonging to module_id.

Parameters

ParameterDescription
module_id Module ID.
page_option_id A page parameter ID.
default_value Default value.

See Also

Example



<?
$my_parameter = CPageOption::GetOptionInt("main", "MY_PARAMETER", 21);
?>