프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |