Bitrix Site Manager

CPageOption::SetOptionInt

bool
CPageOption::SetOptionInt(
 string module_id,
 string page_option_id,
 mixed value = ""
)

The SetOptionInt method sets the numeric value of the parameter page_option_id for the module_id. Returns true on success, or false otherwise.

Parameters

Parameter Description
module_id Module ID.
page_option_id A page parameter ID.
value Parameter value.
Optional. Empty by default.

See Also

Example



<?
CPageOption::SetOptionInt("main", "MY_PARAMETER", 2);
?>