Documentation

SetOptionInt

bool
CPageOption::SetOptionInt(
 string module_id,
 string name,
 mixed value = "",
 desc="",
 string site=false
)

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

Parameter

Parameter Description Available from version
module_id Module ID.
name Arbitrary page parameter ID.
value Parameter value.
Optional, by default - "".
desc
site Site ID. Default value - "false".

See Also

Examples of use

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


© «Bitrix24», 2001-2024
Up