GetOptionInt
int CPageOption::GetOptionInt( string module_id, string name, mixed def = false, string site=false )
The method returns numeric value of page_option_id parameter, belonging to module_id. Static method.
Parameters
Parameter | Description | Available from version |
---|---|---|
module_id | Module ID. | |
name | Arbitrary page parameter ID. | |
def | By default value. | |
site | Site ID. Default value - "false". |
See Also
Examples of use
<? $my_parameter = CPageOption::GetOptionInt("main", "MY_PARAMETER", 21); ?>
© «Bitrix24», 2001-2024