traits
Table of Contents
Namespaces
- documents
- inject
- properties
Traits
- AuthorizationContextTrait
- Resolves a controller's request-scoped authorization context from the DI
container — the capability enforcer and the permission-subject resolver —
and wires them in, in one place.
- CountByDimensionTrait
- Aggregates a model's documents by one facet dimension into a compact
`{ total, counts }` payload — the controller counterpart of
{@see \oihana\arango\models\traits\documents\DocumentsFacetCountsTrait::facetCount()}.
- MetaOnlyTrait
- Holds the durable `metaOnly` default of a controller.
- PayloadsTrait
- PrepareBoundsTrait
- Prepares the list of bound fields whose numeric `{ min, max }` extent is
computed alongside the document list (see
{@see \oihana\arango\models\traits\documents\DocumentsBoundsTrait::bounds()}).
- PrepareFacetCountsTrait
- Prepares the list of facet dimensions for which per-value bucket counts are
computed alongside the document list (see
{@see \oihana\arango\models\traits\documents\DocumentsFacetCountsTrait::facetCounts()}).
- PrepareFacetsOnlyTrait
- Prepares the `facetsOnly` flag of a list query.
- PrepareGroupTrait
- Prepares the high-level grouping spec ({@see Arango::GROUP}) from the HTTP
request, the controller counterpart of {@see \oihana\arango\models\traits\aql\GroupTrait}.
- PrepareMetaOnlyTrait
- Prepares the `metaOnly` flag of a list query.