PHP 클래스 Neos\Media\Browser\Controller\AssetController

상속: extends Neos\Flow\Mvc\Controller\ActionController
파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$assetCollectionRepository Neos\Media\Domain\Repository\AssetCollectionRepository
$assetRepository Neos\Media\Domain\Repository\AssetRepository
$assetService Neos\Media\Domain\Service\AssetService
$browserState Neos\Media\Domain\Session\BrowserState
$packageManager Neos\Flow\Package\PackageManagerInterface
$tagRepository Neos\Media\Domain\Repository\TagRepository
$translator Neos\Flow\I18n\Translator
$viewFormatToObjectNameMap array

공개 메소드들

메소드 설명
addAssetToCollectionAction ( Asset $asset, AssetCollection $assetCollection ) : boolean Adds an asset to an asset collection
addFlashMessage ( string $messageBody, string $messageTitle = '', string $severity = Message::SEVERITY_OK, array $messageArguments = [], integer $messageCode = null ) : void Add a translated flashMessage.
createAction ( Asset $asset ) : void Create a new asset
createAssetCollectionAction ( string $title ) : void
createTagAction ( string $label ) : void
deleteAction ( Asset $asset ) : void Delete an asset
deleteAssetCollectionAction ( AssetCollection $assetCollection ) : void
deleteTagAction ( Tag $tag ) : void
editAction ( Asset $asset ) : void Edit an asset
editAssetCollectionAction ( AssetCollection $assetCollection ) : void
editTagAction ( Tag $tag ) : void
indexAction ( string $view = null, string $sortBy = null, string $sortDirection = null, string $filter = null, integer $tagMode = self::TAG_GIVEN, Tag $tag = null, string $searchTerm = null, integer $collectionMode = self::COLLECTION_GIVEN, AssetCollection $assetCollection = null ) : void List existing assets
newAction ( ) : void New asset form
replaceAssetResourceAction ( Asset $asset ) : void
tagAssetAction ( Asset $asset, Tag $tag ) : boolean Tags an asset with a tag.
updateAction ( Asset $asset ) : void Update an asset
updateAssetCollectionAction ( AssetCollection $assetCollection ) : void
updateAssetResourceAction ( Neos\Media\Domain\Model\AssetInterface $asset, PersistentResource $resource, array $options = [] ) : void Replace the resource on an asset.
updateTagAction ( Tag $tag ) : void
uploadAction ( Asset $asset ) : string Upload a new asset. No redirection and no response body, for use by plupload (or similar).

보호된 메소드들

메소드 설명
initializeCreateAction ( ) : void Initialization for createAction
initializeUpdateAction ( ) : void
initializeUploadAction ( ) : void Initialization for uploadAction
initializeView ( Neos\Flow\Mvc\View\ViewInterface $view ) : void Set common variables on the view
maximumFileUploadSize ( ) : integer Returns the lowest configured maximum upload file size

메소드 상세

addAssetToCollectionAction() 공개 메소드

Adds an asset to an asset collection
public addAssetToCollectionAction ( Asset $asset, AssetCollection $assetCollection ) : boolean
$asset Neos\Media\Domain\Model\Asset
$assetCollection Neos\Media\Domain\Model\AssetCollection
리턴 boolean

addFlashMessage() 공개 메소드

Add a translated flashMessage.
public addFlashMessage ( string $messageBody, string $messageTitle = '', string $severity = Message::SEVERITY_OK, array $messageArguments = [], integer $messageCode = null ) : void
$messageBody string The translation id for the message body.
$messageTitle string The translation id for the message title.
$severity string
$messageArguments array
$messageCode integer
리턴 void

createAction() 공개 메소드

Create a new asset
public createAction ( Asset $asset ) : void
$asset Neos\Media\Domain\Model\Asset
리턴 void

createAssetCollectionAction() 공개 메소드

public createAssetCollectionAction ( string $title ) : void
$title string
리턴 void

createTagAction() 공개 메소드

public createTagAction ( string $label ) : void
$label string
리턴 void

deleteAction() 공개 메소드

Delete an asset
public deleteAction ( Asset $asset ) : void
$asset Neos\Media\Domain\Model\Asset
리턴 void

deleteAssetCollectionAction() 공개 메소드

public deleteAssetCollectionAction ( AssetCollection $assetCollection ) : void
$assetCollection Neos\Media\Domain\Model\AssetCollection
리턴 void

deleteTagAction() 공개 메소드

public deleteTagAction ( Tag $tag ) : void
$tag Neos\Media\Domain\Model\Tag
리턴 void

editAction() 공개 메소드

Edit an asset
public editAction ( Asset $asset ) : void
$asset Neos\Media\Domain\Model\Asset
리턴 void

editAssetCollectionAction() 공개 메소드

public editAssetCollectionAction ( AssetCollection $assetCollection ) : void
$assetCollection Neos\Media\Domain\Model\AssetCollection
리턴 void

editTagAction() 공개 메소드

public editTagAction ( Tag $tag ) : void
$tag Neos\Media\Domain\Model\Tag
리턴 void

indexAction() 공개 메소드

List existing assets
public indexAction ( string $view = null, string $sortBy = null, string $sortDirection = null, string $filter = null, integer $tagMode = self::TAG_GIVEN, Tag $tag = null, string $searchTerm = null, integer $collectionMode = self::COLLECTION_GIVEN, AssetCollection $assetCollection = null ) : void
$view string
$sortBy string
$sortDirection string
$filter string
$tagMode integer
$tag Neos\Media\Domain\Model\Tag
$searchTerm string
$collectionMode integer
$assetCollection Neos\Media\Domain\Model\AssetCollection
리턴 void

initializeCreateAction() 보호된 메소드

Initialization for createAction
protected initializeCreateAction ( ) : void
리턴 void

initializeUpdateAction() 보호된 메소드

protected initializeUpdateAction ( ) : void
리턴 void

initializeUploadAction() 보호된 메소드

Initialization for uploadAction
protected initializeUploadAction ( ) : void
리턴 void

initializeView() 보호된 메소드

Set common variables on the view
protected initializeView ( Neos\Flow\Mvc\View\ViewInterface $view ) : void
$view Neos\Flow\Mvc\View\ViewInterface
리턴 void

maximumFileUploadSize() 보호된 메소드

Returns the lowest configured maximum upload file size
protected maximumFileUploadSize ( ) : integer
리턴 integer

newAction() 공개 메소드

New asset form
public newAction ( ) : void
리턴 void

replaceAssetResourceAction() 공개 메소드

public replaceAssetResourceAction ( Asset $asset ) : void
$asset Neos\Media\Domain\Model\Asset
리턴 void

tagAssetAction() 공개 메소드

No redirection and no response body, no flash message, for use by plupload (or similar).
public tagAssetAction ( Asset $asset, Tag $tag ) : boolean
$asset Neos\Media\Domain\Model\Asset
$tag Neos\Media\Domain\Model\Tag
리턴 boolean

updateAction() 공개 메소드

Update an asset
public updateAction ( Asset $asset ) : void
$asset Neos\Media\Domain\Model\Asset
리턴 void

updateAssetCollectionAction() 공개 메소드

public updateAssetCollectionAction ( AssetCollection $assetCollection ) : void
$assetCollection Neos\Media\Domain\Model\AssetCollection
리턴 void

updateAssetResourceAction() 공개 메소드

Replace the resource on an asset.
public updateAssetResourceAction ( Neos\Media\Domain\Model\AssetInterface $asset, PersistentResource $resource, array $options = [] ) : void
$asset Neos\Media\Domain\Model\AssetInterface
$resource Neos\Flow\ResourceManagement\PersistentResource
$options array
리턴 void

updateTagAction() 공개 메소드

public updateTagAction ( Tag $tag ) : void
$tag Neos\Media\Domain\Model\Tag
리턴 void

uploadAction() 공개 메소드

Upload a new asset. No redirection and no response body, for use by plupload (or similar).
public uploadAction ( Asset $asset ) : string
$asset Neos\Media\Domain\Model\Asset
리턴 string

프로퍼티 상세

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

protected AssetCollectionRepository,Neos\Media\Domain\Repository $assetCollectionRepository
리턴 Neos\Media\Domain\Repository\AssetCollectionRepository

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

protected AssetRepository,Neos\Media\Domain\Repository $assetRepository
리턴 Neos\Media\Domain\Repository\AssetRepository

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

protected AssetService,Neos\Media\Domain\Service $assetService
리턴 Neos\Media\Domain\Service\AssetService

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

protected BrowserState,Neos\Media\Domain\Session $browserState
리턴 Neos\Media\Domain\Session\BrowserState

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

protected PackageManagerInterface,Neos\Flow\Package $packageManager
리턴 Neos\Flow\Package\PackageManagerInterface

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

protected TagRepository,Neos\Media\Domain\Repository $tagRepository
리턴 Neos\Media\Domain\Repository\TagRepository

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

protected Translator,Neos\Flow\I18n $translator
리턴 Neos\Flow\I18n\Translator

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

protected array $viewFormatToObjectNameMap
리턴 array