AutomatedSolutionManager
FinalYes
Table of Contents
Constants
- MODULE_ID = 'crm'
Methods
- __construct() : mixed
- addAutomatedSolution() : Result<string|int, array{fields: array}>
- bindTypeToAutomatedSolution() : Result
- deleteAutomatedSolution() : Result
- getAutomatedSolution() : array<string|int, mixed>|null
- getAutomatedSolutionsFilteredByPermissions() : array<string|int, mixed>
- getBoundTypeIds() : array<string|int, mixed>
- getBoundTypeIdsForMultipleAutomatedSolutions() : array<int, array<string|int, int>>
- getExistingAutomatedSolutions() : array<string|int, mixed>
- isTypeBoundToAnyAutomatedSolution() : bool
- isTypeBoundToAnyAutomatedSolutionById() : bool
- setAutomatedSolutions() : Result
- setTypeBindingsInAutomatedSolution() : Result
- unbindTypeFromAutomatedSolution() : Result
- updateAutomatedSolution() : Result<string|int, array{fields: array}>
Constants
MODULE_ID
public
mixed
MODULE_ID
= 'crm'
Methods
__construct()
public
__construct() : mixed
addAutomatedSolution()
public
addAutomatedSolution(array<string|int, mixed> $fields) : Result<string|int, array{fields: array}>
Parameters
- $fields : array<string|int, mixed>
Return values
Result<string|int, array{fields: array}>bindTypeToAutomatedSolution()
public
bindTypeToAutomatedSolution(Type $type, int $automatedSolutionId) : Result
Parameters
- $type : Type
- $automatedSolutionId : int
Return values
ResultdeleteAutomatedSolution()
public
deleteAutomatedSolution(int $id) : Result
Parameters
- $id : int
Return values
ResultgetAutomatedSolution()
public
getAutomatedSolution(int $id) : array<string|int, mixed>|null
Parameters
- $id : int
Return values
array<string|int, mixed>|nullgetAutomatedSolutionsFilteredByPermissions()
public
getAutomatedSolutionsFilteredByPermissions([int|null $userId = null ]) : array<string|int, mixed>
Parameters
- $userId : int|null = null
Return values
array<string|int, mixed>getBoundTypeIds()
public
getBoundTypeIds(int $automatedSolutionId) : array<string|int, mixed>
Parameters
- $automatedSolutionId : int
Return values
array<string|int, mixed>getBoundTypeIdsForMultipleAutomatedSolutions()
public
getBoundTypeIdsForMultipleAutomatedSolutions(array<string|int, int> $automatedSolutionIds) : array<int, array<string|int, int>>
Parameters
- $automatedSolutionIds : array<string|int, int>
Return values
array<int, array<string|int, int>>getExistingAutomatedSolutions()
public
getExistingAutomatedSolutions() : array<string|int, mixed>
Return values
array<string|int, mixed>isTypeBoundToAnyAutomatedSolution()
public
isTypeBoundToAnyAutomatedSolution(Type $type) : bool
Parameters
- $type : Type
Return values
boolisTypeBoundToAnyAutomatedSolutionById()
public
isTypeBoundToAnyAutomatedSolutionById(int $typeId) : bool
Parameters
- $typeId : int
Return values
boolsetAutomatedSolutions()
public
setAutomatedSolutions(Type $type, array<string|int, mixed> $fields[, bool $checkLimits = true ]) : Result
Parameters
- $type : Type
- $fields : array<string|int, mixed>
- $checkLimits : bool = true
Return values
ResultsetTypeBindingsInAutomatedSolution()
public
setTypeBindingsInAutomatedSolution(array<string|int, Type> $types, int $automatedSolutionId) : Result
Parameters
- $types : array<string|int, Type>
- $automatedSolutionId : int
Return values
ResultunbindTypeFromAutomatedSolution()
public
unbindTypeFromAutomatedSolution(Type $type, int $automatedSolutionId) : Result
Parameters
- $type : Type
- $automatedSolutionId : int
Return values
ResultupdateAutomatedSolution()
public
updateAutomatedSolution(int $id, array<string|int, mixed> $fields) : Result<string|int, array{fields: array}>
Parameters
- $id : int
- $fields : array<string|int, mixed>