KMP PHP API Reference

WarrantsTable extends BaseTable
in package

WarrantsTable - Warrant Data Management for RBAC Security

Manages warrant lifecycle, validation rules, and cache invalidation for the temporal validation layer of Role-Based Access Control.

Tags
@method

\App\Model\Entity\Warrant get(mixed $primaryKey, ...)

mixin
mixin
mixin

Table of Contents

Constants

CACHE_GROUPS_TO_CLEAR  = []
CACHES_TO_CLEAR  = []
ID_CACHES_TO_CLEAR  = []

Properties

$MemberRoles  : MemberRolesTable|BelongsTo
$Members  : MembersTable|BelongsTo
$WarrantRosters  : WarrantRostersTable|BelongsTo

Methods

addBranchScopeQuery()  : SelectQuery
Add branch-based data scoping to a query.
afterDelete()  : void
After delete hook to capture impersonation audit trail entries.
afterSave()  : void
Invalidate permission caches after save for RBAC security.
buildRules()  : RulesChecker
Build referential integrity rules.
initialize()  : void
Initialize table configuration and associations.
newEmptyEntity()  : Warrant
validationDefault()  : Validator
Define validation rules for warrant data.
logImpersonationAction()  : void
Record impersonated writes to audit log table.

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

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()

After delete hook to capture impersonation audit trail entries.

public afterDelete(EventInterface $event, EntityInterface $entity, ArrayObject $options) : void
Parameters
$event : EventInterface

Delete event

$entity : EntityInterface

Entity being deleted

$options : ArrayObject

Delete options

afterSave()

Invalidate permission caches after save for RBAC security.

public afterSave(EventInterface $event, Warrant $entity, ArrayObject $options) : void
Parameters
$event : EventInterface

The afterSave event.

$entity : Warrant

Saved warrant entity.

$options : ArrayObject

Save options.

buildRules()

Build referential integrity rules.

public buildRules(RulesChecker $rules) : RulesChecker
Parameters
$rules : RulesChecker

Rules checker.

Return values
RulesChecker

initialize()

Initialize table configuration and associations.

public initialize(array<string, mixed> $config) : void
Parameters
$config : array<string, mixed>

Table configuration.

validationDefault()

Define validation rules for warrant data.

public validationDefault(Validator $validator) : Validator
Parameters
$validator : Validator

Validator instance.

Return values
Validator

logImpersonationAction()

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


        
On this page

Search results