CIBlockSection extends CAllIBlockSection
Table of Contents
Properties
- $LAST_ERROR : string
Methods
- __construct() : mixed
- Add() : mixed
- CheckFields() : mixed
- checkLoadSections() : bool
- createMnemonicCode() : string|null
- Delete() : mixed
- generateMnemonicCode() : string|null
- GetByID() : mixed
- GetCount() : mixed
- getElementInherentFilter() : array<string|int, mixed>
- Returns a filter by element properties and product fields.
- GetFilter() : mixed
- getLastError() : string
- GetList() : CIBlockResult
- GetMixedList() : CDBResult
- GetNavChain() : mixed
- getSectionCode() : string
- getSectionCodePath() : mixed
- GetSectionElementsCount() : mixed
- GetTreeList() : mixed
- isExistsMnemonicCode() : bool
- RecalcGlobalActiveFlag() : mixed
- recountTreeAfterAdd() : void
- recountTreeAfterUpdate() : void
- recountTreeOnDelete() : void
- ReSort() : mixed
- setIblock() : void
- TreeReSort() : mixed
- Update() : mixed
- UpdateSearch() : mixed
- UserTypeRightsCheck() : mixed
Properties
$LAST_ERROR
public
string
$LAST_ERROR
= ''
Methods
__construct()
public
__construct() : mixed
Add()
public
Add(mixed $arFields[, mixed $bResort = true ][, mixed $bUpdateSearch = true ][, mixed $bResizePictures = false ]) : mixed
Parameters
- $arFields : mixed
- $bResort : mixed = true
- $bUpdateSearch : mixed = true
- $bResizePictures : mixed = false
CheckFields()
public
CheckFields(mixed &$arFields[, mixed $ID = false ]) : mixed
Parameters
- $arFields : mixed
- $ID : mixed = false
checkLoadSections()
public
static checkLoadSections(array<string|int, mixed> $filter) : bool
Parameters
- $filter : array<string|int, mixed>
Return values
boolcreateMnemonicCode()
public
createMnemonicCode(array<string|int, mixed> $section[, array<string|int, mixed> $options = [] ]) : string|null
Parameters
- $section : array<string|int, mixed>
- $options : array<string|int, mixed> = []
Return values
string|nullDelete()
public
static Delete(mixed $ID[, mixed $bCheckPermissions = true ]) : mixed
Parameters
- $ID : mixed
- $bCheckPermissions : mixed = true
generateMnemonicCode()
public
generateMnemonicCode(string $name, int $iblockId[, array<string|int, mixed> $options = [] ]) : string|null
Parameters
- $name : string
- $iblockId : int
- $options : array<string|int, mixed> = []
Return values
string|nullGetByID()
public
static GetByID(mixed $ID) : mixed
Parameters
- $ID : mixed
GetCount()
public
static GetCount([mixed $arFilter = [] ]) : mixed
Parameters
- $arFilter : mixed = []
getElementInherentFilter()
Returns a filter by element properties and product fields.
public
static getElementInherentFilter(array<string|int, mixed> $filter) : array<string|int, mixed>
Parameters
- $filter : array<string|int, mixed>
Return values
array<string|int, mixed>GetFilter()
public
static GetFilter([mixed $arFilter = array() ]) : mixed
Parameters
- $arFilter : mixed = array()
getLastError()
public
getLastError() : string
Return values
stringGetList()
public
static GetList([array<string|int, mixed> $arOrder = array("SORT" => "ASC") ][, array<string|int, mixed> $arFilter = array() ][, bool $bIncCnt = false ][, array<string|int, mixed> $arSelect = array() ][, array<string|int, mixed>|false $arNavStartParams = false ]) : CIBlockResult
Parameters
- $arOrder : array<string|int, mixed> = array("SORT" => "ASC")
- $arFilter : array<string|int, mixed> = array()
- $bIncCnt : bool = false
- $arSelect : array<string|int, mixed> = array()
- $arNavStartParams : array<string|int, mixed>|false = false
Return values
CIBlockResultGetMixedList()
public
static GetMixedList([array<string|int, mixed> $arOrder = array("SORT" => "ASC") ][, array<string|int, mixed> $arFilter = array() ][, bool $bIncCnt = false ][, bool|array<string|int, mixed> $arSelectedFields = false ]) : CDBResult
Parameters
- $arOrder : array<string|int, mixed> = array("SORT" => "ASC")
- $arFilter : array<string|int, mixed> = array()
- $bIncCnt : bool = false
- $arSelectedFields : bool|array<string|int, mixed> = false
Return values
CDBResultGetNavChain()
public
static GetNavChain(mixed $IBLOCK_ID, mixed $SECTION_ID[, mixed $arSelect = array() ][, mixed $arrayResult = false ]) : mixed
Parameters
- $IBLOCK_ID : mixed
- $SECTION_ID : mixed
- $arSelect : mixed = array()
- $arrayResult : mixed = false
getSectionCode()
public
static getSectionCode(mixed $sectionId) : string
Parameters
- $sectionId : mixed
Return values
stringgetSectionCodePath()
public
static getSectionCodePath(mixed $sectionId) : mixed
Parameters
- $sectionId : mixed
GetSectionElementsCount()
public
static GetSectionElementsCount(mixed $ID[, mixed $arFilter = array() ]) : mixed
Parameters
- $ID : mixed
- $arFilter : mixed = array()
GetTreeList()
public
static GetTreeList([mixed $arFilter = array() ][, mixed $arSelect = array() ]) : mixed
Parameters
- $arFilter : mixed = array()
- $arSelect : mixed = array()
isExistsMnemonicCode()
public
isExistsMnemonicCode(string $code, int|null $sectionId, int $iblockId) : bool
Parameters
- $code : string
- $sectionId : int|null
- $iblockId : int
Return values
boolRecalcGlobalActiveFlag()
public
static RecalcGlobalActiveFlag(mixed $arSection[, mixed $distance = 0 ]) : mixed
Parameters
- $arSection : mixed
- $distance : mixed = 0
recountTreeAfterAdd()
public
static recountTreeAfterAdd(array<string|int, mixed> $arFields) : void
Parameters
- $arFields : array<string|int, mixed>
-
ID, IBLOCK_ID, IBLOCK_SECTION_ID, NAME, SORT
recountTreeAfterUpdate()
public
static recountTreeAfterUpdate(array<string|int, mixed> $arFields, array<string|int, mixed> $db_record) : void
Parameters
- $arFields : array<string|int, mixed>
-
ID, ACTIVE, IBLOCK_SECTION_ID, NAME, SORT
- $db_record : array<string|int, mixed>
-
recountTreeOnDelete()
public
static recountTreeOnDelete(array<string|int, mixed> $arFields) : void
Parameters
- $arFields : array<string|int, mixed>
-
ID
ReSort()
public
static ReSort(mixed $IBLOCK_ID[, mixed $ID = 0 ][, mixed $cnt = 0 ][, mixed $depth = 0 ][, mixed $ACTIVE = "Y" ]) : mixed
Parameters
- $IBLOCK_ID : mixed
- $ID : mixed = 0
- $cnt : mixed = 0
- $depth : mixed = 0
- $ACTIVE : mixed = "Y"
setIblock()
public
setIblock(int|null $iblockId) : void
Parameters
- $iblockId : int|null
TreeReSort()
public
static TreeReSort(mixed $IBLOCK_ID[, mixed $ID = 0 ][, mixed $cnt = 0 ][, mixed $depth = 0 ][, mixed $ACTIVE = "Y" ]) : mixed
Parameters
- $IBLOCK_ID : mixed
- $ID : mixed = 0
- $cnt : mixed = 0
- $depth : mixed = 0
- $ACTIVE : mixed = "Y"
Update()
public
Update(mixed $ID, mixed $arFields[, mixed $bResort = true ][, mixed $bUpdateSearch = true ][, mixed $bResizePictures = false ]) : mixed
Parameters
- $ID : mixed
- $arFields : mixed
- $bResort : mixed = true
- $bUpdateSearch : mixed = true
- $bResizePictures : mixed = false
UpdateSearch()
public
UpdateSearch(mixed $ID[, mixed $bOverWrite = false ]) : mixed
Parameters
- $ID : mixed
- $bOverWrite : mixed = false
UserTypeRightsCheck()
public
static UserTypeRightsCheck(mixed $entity_id) : mixed
Parameters
- $entity_id : mixed