CoolCMS API

Services

Table of Contents

Traits

DeleteTrait
Delete operations.
GetAllTrait
Find all entities with filters.
GetByTrait
Find entities by filters.
GetTrait
Find single entity by ID.
SaveTrait
Save/update operations.
SourceLockTransactionTrait
Shared concurrency framework for writers serialized per source document, following the `DocumentService` pattern: the Store reservation writers (`ReservationService`, `ReservationExpirer`), Eshop order, complaint and credit-note managers, the Invoicer credit-note manager and the Company reservation, time-slot, work-list and work-sheet managers. It is not applied to `DocumentService` itself, which keeps its own private copy. A trait is not a class, so the DI scan never tries to instantiate it. A consumer outside Store may override `lockLogChannel()` to log into its own channel; a trait is not a cross-module dependency, it becomes part of the consuming class after `use`.
TransactionTrait
The mapper always provides transactions ({@see \App\Core\Base\Api\Models\Mappers\MapperInterface}).
TreeTrait
Tree operations (nested set). A move and a delete rewrite `lft`/`rgt` on many rows (whole subtrees).
On this page

Search results