Bitrix Site Manager

CIBlockElement::SetElementSection

CIBlockElement::SetElementSection(
 int ID,
 array arSections
);
The method binds the information block element to a section.

Parameters

ParameterDescription
ID Element ID.
arSections Array of the section numeric identifiers to which the element is to be bound.

See Also

  • CIBlockElement::GetElementGroups()

    Example


    <?
    $ID = 18;  // element ID
    $arSects = array(1, 5, 7); // array of section ID's
    CIBlockElement::SetElementSection($ID, $arSects);
    ?>