Bitrix API

CategoryRepository

Class CategoryRepository

Table of Contents

Methods

createByEntityTypeId()  : Category|null
getByEntityTypeId()  : Category|null
getIdByEntityTypeId()  : int|null
getOrCreateByEntityTypeId()  : Category|null
isContractorCategory()  : bool

Methods

getIdByEntityTypeId()

public static getIdByEntityTypeId(int $entityTypeId) : int|null
Parameters
$entityTypeId : int
Return values
int|null

getOrCreateByEntityTypeId()

public static getOrCreateByEntityTypeId(int $entityTypeId) : Category|null
Parameters
$entityTypeId : int
Return values
Category|null

isContractorCategory()

public static isContractorCategory(int $entityTypeId, int $categoryId) : bool
Parameters
$entityTypeId : int
$categoryId : int
Return values
bool

        
On this page

Search results