프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$imageService | |||
$variants | Collection<\Neos\Media\Domain\Model\ImageVariant> |
메소드 | 설명 | |
---|---|---|
__construct ( |
Constructor | |
addVariant ( |
Adds a variant of this image | |
getVariants ( ) : array | Returns all variants (if any) derived from this asset | |
initializeObject ( integer $initializationCause ) : void | ||
refresh ( ) : void | Calculates image width and height from the image resource. |
메소드 | 설명 | |
---|---|---|
calculateDimensionsFromResource ( |
Calculates and sets the width and height of this Image asset based on the given PersistentResource. |
public __construct ( |
||
$resource |
public addVariant ( |
||
$variant | The new variant | |
리턴 | void |
protected calculateDimensionsFromResource ( |
||
$resource | ||
리턴 | void |
public getVariants ( ) : array | ||
리턴 | array |
public initializeObject ( integer $initializationCause ) : void | ||
$initializationCause | integer | |
리턴 | void |
protected ImageService,Neos\Media\Domain\Service $imageService | ||
리턴 |