Documentation

GetOptionString

string
CPageOption::GetOptionString(
 string module_id,
 string name,
 mixed def = false,
 string site=false
)

Returns string value of the page_option_id parameter, belonging to module_id. Static method.

Parameters

ParameterDescription Available from version
module_id Module ID.
page_option_id Arbitrary page ID.
default_value Default value.
site Site ID. Default value - "false".

See Also

  • CPageOption::GetOptionInt

    Examples of use

    <?
    $my_parameter = CPageOption::GetOptionString("main", "MY_PARAMETER", "Y");
    ?>
  • © «Bitrix24», 2001-2024
    Up