Bitrix Site Manager

CPageOption::GetOptionString

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

The GetOptionString method returns the string 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::GetOptionString("main", "MY_PARAMETER", "Y");
?>