CategoryRepository
Class CategoryRepository
Table of Contents
Methods
- createByEntityTypeId() : Category|null
- getByEntityTypeId() : Category|null
- getIdByEntityTypeId() : int|null
- getOrCreateByEntityTypeId() : Category|null
- isContractorCategory() : bool
Methods
createByEntityTypeId()
public
static createByEntityTypeId(int $entityTypeId) : Category|null
Parameters
- $entityTypeId : int
Return values
Category|nullgetByEntityTypeId()
public
static getByEntityTypeId(int $entityTypeId) : Category|null
Parameters
- $entityTypeId : int
Return values
Category|nullgetIdByEntityTypeId()
public
static getIdByEntityTypeId(int $entityTypeId) : int|null
Parameters
- $entityTypeId : int
Return values
int|nullgetOrCreateByEntityTypeId()
public
static getOrCreateByEntityTypeId(int $entityTypeId) : Category|null
Parameters
- $entityTypeId : int
Return values
Category|nullisContractorCategory()
public
static isContractorCategory(int $entityTypeId, int $categoryId) : bool
Parameters
- $entityTypeId : int
- $categoryId : int