PHP Class Neos\Media\Tests\Functional\Fixtures\Controller\ImageController

Inheritance: extends Neos\Flow\Mvc\Controller\ActionController
Afficher le fichier Open project: neos/neos-development-collection

Protected Properties

Свойство Type Description
$assetRepository Neos\Media\Domain\Repository\AssetRepository
$resourceManager Neos\Flow\ResourceManagement\ResourceManager

Méthodes publiques

Méthode Description
importAction ( string $importUri ) : string Imports a new image and persists it, including one variant
showImageVariantAction ( ImageVariant $imageVariant ) : void Shows an image variant
uploadAction ( Image $image ) : string Upload a new image and return an image variant, a thumbnail and additional information like it would be returned for the Neos backend.

Méthodes protégées

Méthode Description
initializeView ( Neos\Flow\Mvc\View\ViewInterface $view ) : void

Method Details

importAction() public méthode

Imports a new image and persists it, including one variant
public importAction ( string $importUri ) : string
$importUri string
Résultat string

initializeView() protected méthode

protected initializeView ( Neos\Flow\Mvc\View\ViewInterface $view ) : void
$view Neos\Flow\Mvc\View\ViewInterface
Résultat void

showImageVariantAction() public méthode

Shows an image variant
public showImageVariantAction ( ImageVariant $imageVariant ) : void
$imageVariant Neos\Media\Domain\Model\ImageVariant
Résultat void

uploadAction() public méthode

Upload a new image and return an image variant, a thumbnail and additional information like it would be returned for the Neos backend.
public uploadAction ( Image $image ) : string
$image Neos\Media\Domain\Model\Image
Résultat string

Property Details

$assetRepository protected_oe property

protected AssetRepository,Neos\Media\Domain\Repository $assetRepository
Résultat Neos\Media\Domain\Repository\AssetRepository

$resourceManager protected_oe property

protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager
Résultat Neos\Flow\ResourceManagement\ResourceManager