Method | Description | |
---|---|---|
findPresetByDimensionValues ( string $dimensionName, array $dimensionValues ) : array | Find a dimension preset by dimension values | |
findPresetsByTargetValues ( array $targetValues ) : array | Finds for each configured dimension the best matching preset based on given target value for that dimension. | |
getAllPresets ( ) : array | Get the full presets configuration as an array | |
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 ( string $dimensionName ) : array | Get the default preset of a dimension | |
isPresetCombinationAllowedByConstraints ( array $dimensionsNamesAndPresetIdentifiers ) : boolean | Checks if the given combination of presets is allowed, according to possibly defined constraints in the content dimension configuration. |
public findPresetsByTargetValues ( array $targetValues ) : array | ||
$targetValues | array | |
return | array |
public getAllPresets ( ) : array | ||
return | array | Presets configuration, indexed by dimension identifier |
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 |
return | array | An array of presets only for the dimension specified in $dimensionName. Structure is: array($dimensionName => array('presets' => array(...)) |
public getDefaultPreset ( string $dimensionName ) : array | ||
$dimensionName | string | The dimension name where the default preset should be returned |
return | array | The preset configuration, including the identifier as key "identifier" |
public isPresetCombinationAllowedByConstraints ( array $dimensionsNamesAndPresetIdentifiers ) : boolean | ||
$dimensionsNamesAndPresetIdentifiers | array | Preset pairs, for example array('language' => 'de', 'country' => 'GER', 'persona' => 'clueless') |
return | boolean |