Свойство | Тип | Описание | |
---|---|---|---|
$configuration | array | Dimension presets configuration indexed by dimension name, see ContentDimensionPresetSourceInterface |
Метод | Описание | |
---|---|---|
findPresetByDimensionValues ( $dimensionName, array $dimensionValues ) | ||
findPresetsByTargetValues ( array $targetValues ) | ||
getAllPresets ( ) | ||
getAllowedDimensionPresetsAccordingToPreselection ( string $dimensionName, array $preselectedDimensionPresets ) : array | Returns a list of presets of the specified dimension which are allowed in combination with the given presets of other dimensions. | |
getDefaultPreset ( $dimensionName ) | ||
isPresetCombinationAllowedByConstraints ( array $dimensionsNamesAndPresetIdentifiers ) : boolean | Checks if the given combination of presets is allowed, according to possibly defined constraints in the content dimension configuration. | |
setConfiguration ( array $configuration ) : void |
Метод | Описание | |
---|---|---|
comparePresetsForTargetValue ( array $possibleBetterPreset, array $targetValues, array $currentBestPreset = null ) : array | Compares the given $possibleBetterPreset to the $targetValues (based on the position of the contained values) and returns either $possibleBetterPreset or the $currentBestPreset, depending on the result. | |
isPresetAllowedByConstraints ( string $dimensionName, string $presetIdentifier, array $constraints ) : boolean | Checks if the given preset of the specified dimension is allowed according to the given constraints |
public findPresetByDimensionValues ( $dimensionName, array $dimensionValues ) | ||
$dimensionValues | array |
public findPresetsByTargetValues ( array $targetValues ) | ||
$targetValues | array |
public getAllowedDimensionPresetsAccordingToPreselection ( string $dimensionName, array $preselectedDimensionPresets ) : array | ||
$dimensionName | string | Name of the dimension to return presets for |
$preselectedDimensionPresets | array | An array of dimension name and preset identifier specifying the presets which are already selected |
Результат | array | An array of presets only for the dimension specified in $dimensionName. Structure is: array($dimensionName => array('presets' => array(...)) |
protected isPresetAllowedByConstraints ( string $dimensionName, string $presetIdentifier, array $constraints ) : boolean | ||
$dimensionName | string | Name of the dimension the preset belongs to |
$presetIdentifier | string | Identifier of the preset to check |
$constraints | array | Constraints to use for the check |
Результат | boolean |
public isPresetCombinationAllowedByConstraints ( array $dimensionsNamesAndPresetIdentifiers ) : boolean | ||
$dimensionsNamesAndPresetIdentifiers | array | Preset pairs, for example array('language' => 'de', 'country' => 'GER', 'persona' => 'clueless') |
Результат | boolean |
public setConfiguration ( array $configuration ) : void | ||
$configuration | array | |
Результат | void |
protected array $configuration | ||
Результат | array |