Utils
in package
Tags
Table of Contents
Methods
- formatViewValue() : string
- getEntityWeights() : array<string|int, string>
- Sorts entities according to references to each other
- getSearchOperators() : array<string|int, mixed>
- Subset of APIv4 operators that are appropriate for use on Afforms
- shouldClearMenuCache() : bool
- shouldReconcileManaged() : bool
Methods
formatViewValue()
public
static formatViewValue(string $fieldName, array<string|int, mixed> $fieldInfo, array<string|int, mixed> $values) : string
Parameters
- $fieldName : string
- $fieldInfo : array<string|int, mixed>
- $values : array<string|int, mixed>
Return values
stringgetEntityWeights()
Sorts entities according to references to each other
public
static getEntityWeights(mixed $formEntities, mixed $entityValues) : array<string|int, string>
Returns a list of entity names in order of when they should be processed, so that an entity being referenced is saved before the entity referencing it.
Parameters
- $formEntities : mixed
- $entityValues : mixed
Return values
array<string|int, string>getSearchOperators()
Subset of APIv4 operators that are appropriate for use on Afforms
public
static getSearchOperators() : array<string|int, mixed>
This list may be further reduced by fields which declare a limited number of operators in their metadata.
Return values
array<string|int, mixed>shouldClearMenuCache()
public
static shouldClearMenuCache(array<string|int, mixed> $updatedAfform[, array<string|int, mixed> $originalAfform = [] ]) : bool
Parameters
- $updatedAfform : array<string|int, mixed>
- $originalAfform : array<string|int, mixed> = []
Return values
boolshouldReconcileManaged()
public
static shouldReconcileManaged(array<string|int, mixed> $updatedAfform[, array<string|int, mixed> $originalAfform = [] ]) : bool
Parameters
- $updatedAfform : array<string|int, mixed>
- $originalAfform : array<string|int, mixed> = []