Crm
FinalYes
All-in-one facade to crm module.
Used to avoid direct calls to different module API. Please, keep it simple and provide only bare minimum that is required for intranet functioning. Too extensive API would be hard to maintain.
Table of Contents
Methods
- checkReadPermissions() : bool
- getInstance() : self
- getItemListUrlInCurrentView() : Uri|null
- isOldInvoicesEnabled() : bool
- isSmartInvoicesEnabled() : bool
- redirectToFirstAvailableEntity() : never
Methods
checkReadPermissions()
public
checkReadPermissions(int $entityTypeId[, int $id = 0 ][, int|null $categoryId = null ][, int|null $userId = null ]) : bool
Parameters
- $entityTypeId : int
- $id : int = 0
- $categoryId : int|null = null
- $userId : int|null = null
Return values
boolgetInstance()
public
static getInstance() : self
Return values
selfgetItemListUrlInCurrentView()
public
getItemListUrlInCurrentView(int $entityTypeId[, int|null $categoryId = null ]) : Uri|null
Parameters
- $entityTypeId : int
- $categoryId : int|null = null
Return values
Uri|nullisOldInvoicesEnabled()
public
isOldInvoicesEnabled() : bool
Return values
boolisSmartInvoicesEnabled()
public
isSmartInvoicesEnabled() : bool
Return values
boolredirectToFirstAvailableEntity()
public
redirectToFirstAvailableEntity() : never