DynamicTypesMap
Table of Contents
Methods
- __construct() : mixed
- getAllStages() : array<string|int, mixed>
- getBunchOfTypesByIds() : array<string|int, mixed>
- getCategories() : array<string|int, EO_ItemCategory>
- getDefaultCategory() : EO_ItemCategory|null
- getStages() : array<string|int, EO_Status>
- getStagesEntityId() : string|null
- getStagesFieldName() : string|null
- getTypes() : array<string|int, Type>
- getTypesCollection() : Collection
- Load types collection from cache of possible.
- invalidateTypesCollectionCache() : void
- isAutomationEnabled() : bool
- isCategoriesEnabled() : bool
- isStagesEnabled() : bool
- load() : $this
Methods
__construct()
public
__construct() : mixed
getAllStages()
public
getAllStages() : array<string|int, mixed>
Return values
array<string|int, mixed>getBunchOfTypesByIds()
public
final getBunchOfTypesByIds(array<string|int, mixed> $typeIds) : array<string|int, mixed>
Parameters
- $typeIds : array<string|int, mixed>
Return values
array<string|int, mixed>getCategories()
public
getCategories([int|null $entityTypeId = null ]) : array<string|int, EO_ItemCategory>
Parameters
- $entityTypeId : int|null = null
Tags
Return values
array<string|int, EO_ItemCategory>getDefaultCategory()
public
getDefaultCategory(int $entityTypeId) : EO_ItemCategory|null
Parameters
- $entityTypeId : int
Return values
EO_ItemCategory|nullgetStages()
public
getStages(int $entityTypeId[, int|null $categoryId = null ]) : array<string|int, EO_Status>
Parameters
- $entityTypeId : int
- $categoryId : int|null = null
Tags
Return values
array<string|int, EO_Status>getStagesEntityId()
public
getStagesEntityId(int $entityTypeId[, int|null $categoryId = null ]) : string|null
Parameters
- $entityTypeId : int
- $categoryId : int|null = null
Return values
string|nullgetStagesFieldName()
public
getStagesFieldName(int $entityTypeId) : string|null
Parameters
- $entityTypeId : int
Return values
string|nullgetTypes()
public
getTypes() : array<string|int, Type>
Tags
Return values
array<string|int, Type>getTypesCollection()
Load types collection from cache of possible.
public
getTypesCollection() : Collection
If cache is not valid - loads it from database and stores new value.
Return values
CollectioninvalidateTypesCollectionCache()
public
invalidateTypesCollectionCache() : void
isAutomationEnabled()
public
isAutomationEnabled(int $entityTypeId) : bool
Parameters
- $entityTypeId : int
Return values
boolisCategoriesEnabled()
public
isCategoriesEnabled(int $entityTypeId) : bool
Parameters
- $entityTypeId : int
Return values
boolisStagesEnabled()
public
isStagesEnabled(int $entityTypeId) : bool
Parameters
- $entityTypeId : int
Return values
boolload()
public
final load([array<string|int, mixed> $params = [] ]) : $this
Parameters
- $params : array<string|int, mixed> = []
-
= [ 'isLoadStages' => true, 'isLoadCategories' => true, ]