WorkflowApprovalResponsesTable
extends BaseTable
in package
WorkflowApprovalResponses Model
Table of Contents
Constants
- CACHE_GROUPS_TO_CLEAR : array<string|int, string> = []
- CACHES_TO_CLEAR : array<string|int, array{string, string}> = []
- ID_CACHES_TO_CLEAR : array<string|int, array{string, string}> = []
Properties
- $Members : MembersTable|BelongsTo
- $WorkflowApprovals : WorkflowApprovalsTable|BelongsTo
Methods
- addBranchScopeQuery() : SelectQuery
- Add branch-based data scoping to a query.
- afterDelete() : void
- Clear pending approval eligibility caches when a response is deleted.
- afterSave() : void
- Clear pending approval eligibility caches when a member responds.
- buildRules() : RulesChecker
- Build rules for referential integrity.
- initialize() : void
- Initialize method.
- newEmptyEntity() : WorkflowApprovalResponse
- newEntity() : WorkflowApprovalResponse
- patchEntity() : WorkflowApprovalResponse
- validationDefault() : Validator
- Default validation rules.
- logImpersonationAction() : void
- Record impersonated writes to audit log table.
- setJsonColumnTypesIfPresent() : void
- Mark JSON columns when the table schema is available.
Constants
CACHE_GROUPS_TO_CLEAR
protected
array<string|int, string>
CACHE_GROUPS_TO_CLEAR
= []
Cache groups to clear entirely on save
CACHES_TO_CLEAR
protected
array<string|int, array{string, string}>
CACHES_TO_CLEAR
= []
Static cache entries to clear on save
ID_CACHES_TO_CLEAR
protected
array<string|int, array{string, string}>
ID_CACHES_TO_CLEAR
= []
Entity-ID cache prefixes to clear on save
Properties
$Members
public
MembersTable|BelongsTo
$Members
$WorkflowApprovals
public
WorkflowApprovalsTable|BelongsTo
$WorkflowApprovals
Methods
addBranchScopeQuery()
Add branch-based data scoping to a query.
public
addBranchScopeQuery(SelectQuery $query, array<string|int, int> $branchIDs) : SelectQuery
Child tables should override for custom branch relationships.
Parameters
- $query : SelectQuery
-
The query to modify
- $branchIDs : array<string|int, int>
-
Authorized branch IDs
Return values
SelectQuery —Query with branch filtering
afterDelete()
Clear pending approval eligibility caches when a response is deleted.
public
afterDelete(mixed $event, mixed $entity, mixed $options) : void
Parameters
- $event : mixed
-
Event object.
- $entity : mixed
-
Deleted entity.
- $options : mixed
-
Delete options.
afterSave()
Clear pending approval eligibility caches when a member responds.
public
afterSave(mixed $event, mixed $entity, mixed $options) : void
Parameters
- $event : mixed
-
Event object.
- $entity : mixed
-
Saved entity.
- $options : mixed
-
Save options.
buildRules()
Build rules for referential integrity.
public
buildRules(RulesChecker $rules) : RulesChecker
Parameters
- $rules : RulesChecker
Return values
RulesCheckerinitialize()
Initialize method.
public
initialize(array<string|int, mixed> $config) : void
Parameters
- $config : array<string|int, mixed>
newEmptyEntity()
public
newEmptyEntity() : WorkflowApprovalResponse
Return values
WorkflowApprovalResponsenewEntity()
public
newEntity(array<string|int, mixed> $data[, array<string|int, mixed> $options = = '[]' ]) : WorkflowApprovalResponse
Parameters
- $data : array<string|int, mixed>
- $options : array<string|int, mixed> = = '[]'
Return values
WorkflowApprovalResponsepatchEntity()
public
patchEntity(EntityInterface $entity, array<string|int, mixed> $data[, array<string|int, mixed> $options = = '[]' ]) : WorkflowApprovalResponse
Parameters
- $entity : EntityInterface
- $data : array<string|int, mixed>
- $options : array<string|int, mixed> = = '[]'
Return values
WorkflowApprovalResponsevalidationDefault()
Default validation rules.
public
validationDefault(Validator $validator) : Validator
Parameters
- $validator : Validator
Return values
ValidatorlogImpersonationAction()
Record impersonated writes to audit log table.
protected
logImpersonationAction(string $defaultOperation, EntityInterface $entity) : void
Parameters
- $defaultOperation : string
-
Operation fallback (save/delete)
- $entity : EntityInterface
-
Affected entity
setJsonColumnTypesIfPresent()
Mark JSON columns when the table schema is available.
protected
setJsonColumnTypesIfPresent(array<int, string> $columns) : void
Some reset/migration flows instantiate table classes before every table exists. JSON type mapping is optional metadata, so skip it until the schema can be described instead of failing application bootstrap.
Parameters
- $columns : array<int, string>
-
JSON column names.