PHP 클래스 Neos\ContentRepository\Domain\Service\ConfigurationContentDimensionPresetSource

Everything is configured in Settings.yaml in path "Neos.ContentRepository.contentDimensions".
상속: implements Neos\ContentRepository\Domain\Service\ContentDimensionPresetSourceInterface
파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

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

메소드 상세

comparePresetsForTargetValue() 보호된 메소드

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.
protected comparePresetsForTargetValue ( array $possibleBetterPreset, array $targetValues, array $currentBestPreset = null ) : array
$possibleBetterPreset array
$targetValues array
$currentBestPreset array
리턴 array

findPresetByDimensionValues() 공개 메소드

public findPresetByDimensionValues ( $dimensionName, array $dimensionValues )
$dimensionValues array

findPresetsByTargetValues() 공개 메소드

public findPresetsByTargetValues ( array $targetValues )
$targetValues array

getAllPresets() 공개 메소드

public getAllPresets ( )

getAllowedDimensionPresetsAccordingToPreselection() 공개 메소드

Returns a list of presets of the specified dimension which are allowed in combination with the given presets of other dimensions.
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(...))

getDefaultPreset() 공개 메소드

public getDefaultPreset ( $dimensionName )

isPresetAllowedByConstraints() 보호된 메소드

Checks if the given preset of the specified dimension is allowed according to the given constraints
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

isPresetCombinationAllowedByConstraints() 공개 메소드

Checks if the given combination of presets is allowed, according to possibly defined constraints in the content dimension configuration.
public isPresetCombinationAllowedByConstraints ( array $dimensionsNamesAndPresetIdentifiers ) : boolean
$dimensionsNamesAndPresetIdentifiers array Preset pairs, for example array('language' => 'de', 'country' => 'GER', 'persona' => 'clueless')
리턴 boolean

setConfiguration() 공개 메소드

public setConfiguration ( array $configuration ) : void
$configuration array
리턴 void

프로퍼티 상세

$configuration 보호되어 있는 프로퍼티

Dimension presets configuration indexed by dimension name, see ContentDimensionPresetSourceInterface
protected array $configuration
리턴 array