Documentation

getParentSection

integer|null public static
\Bitrix\Catalog\Product\Viewed::getParentSection(
 integer $sectionId,
 integer $depth
);

Method returns parent section ID with required nesting level. Static method.

Parameters

ParameterDescriptionVersion
$sectionIdOrder ID.
$depthNesting level.

Exception

  • \Bitrix\Main\ArgumentException

Example



© «Bitrix24», 2001-2024
Up