Oihana PHP Arango

resolveSkinFields.php

Table of Contents

Functions

resolveSkinFields()  : mixed
Resolves which projection an edge or join definition should use for the active request skin.

Functions

resolveSkinFields()

Resolves which projection an edge or join definition should use for the active request skin.

resolveSkinFields(array<string|int, mixed> $definition, string|null $skin) : mixed

Resolution order :

  1. AQL::SKIN_FIELDS[$skin] — explicit projection for this skin
  2. AQL::SKIN_FIELDS['*'] — fallback bucket inside SKIN_FIELDS
  3. Arango::FIELDS — legacy single projection (backwards-compatible)
  4. null — no projection declared at all

If AQL::SKIN_FIELDS is absent or not an array, the function ignores it and falls back directly on Arango::FIELDS — definitions that pre-date the SKIN_FIELDS feature keep their behaviour unchanged.

Parameters
$definition : array<string|int, mixed>

The edge or join definition.

$skin : string|null

The request-level skin (e.g. 'default', 'full').

Tags
author

Marc Alcaraz

Return values
mixed

The resolved projection (typically an array<string, mixed>) or null.

On this page

Search results