OriginDimensionSpacePoint
final class OriginDimensionSpacePoint extends AbstractDimensionSpacePoint (View source)
A node's origin dimension space point. Defines in which point in the dimension space the node originates (= is "at home"). Every node has exactly ONE OriginDimensionSpacePoint, but one or more {DimensionSpacePoint}s where the node is visible.
Example: In a setup with dimension "language", a node that originates in English has English content, but might be visible in other languages via fallback mechanisms.
Methods
A variant VarA is a "Direct Variant in Dimension Dim" of another variant VarB, if VarA and VarB are sharing all dimension values except in "Dim", AND they have differing dimension values in "Dim". Thus, VarA and VarB only vary in the given "Dim".
Equals check (as opposed to === same check, which is usually the preferred variant) Compares two hashes, since the DSPs themselves might be of different classes
No description
Creates a dimension space point for a zero-dimensional content repository.
No description
Creates a dimension space point from a legacy dimension array in format ['language' => ['es'], 'country' => ['ar']]
No description
Details
protected
__construct(array $coordinates, string $hash)
No description
final static protected string
hashCoordinates(array $coordinates)
No description
final static protected void
validateCoordinates(array $coordinates)
No description
final bool
isDirectVariantInDimension(AbstractDimensionSpacePoint $other, ContentDimensionId $contentDimensionId)
A variant VarA is a "Direct Variant in Dimension Dim" of another variant VarB, if VarA and VarB are sharing all dimension values except in "Dim", AND they have differing dimension values in "Dim". Thus, VarA and VarB only vary in the given "Dim".
It does not say anything about how VarA and VarB relate (if it is specialization, peer or generalization).
final bool
hasCoordinate(ContentDimensionId $dimensionId)
No description
final string|null
getCoordinate(ContentDimensionId $dimensionId)
No description
final bool
equals(AbstractDimensionSpacePoint $other)
Equals check (as opposed to === same check, which is usually the preferred variant) Compares two hashes, since the DSPs themselves might be of different classes
final array
toLegacyDimensionArray()
deprecated
deprecated
No description
final array
jsonSerialize()
No description
final string
toJson()
No description
static OriginDimensionSpacePoint
fromArray(array $data)
No description
static OriginDimensionSpacePoint
createWithoutDimensions()
Creates a dimension space point for a zero-dimensional content repository.
This applies to content repositories without any dimensions configured.
static OriginDimensionSpacePoint
fromJsonString(string $jsonString)
No description
static OriginDimensionSpacePoint
fromDimensionSpacePoint(DimensionSpacePoint $dimensionSpacePoint)
No description
final static OriginDimensionSpacePoint
fromLegacyDimensionArray(array $legacyDimensionValues)
deprecated
deprecated
Creates a dimension space point from a legacy dimension array in format ['language' => ['es'], 'country' => ['ar']]
DimensionSpacePoint
toDimensionSpacePoint()
No description