PHP 클래스 Neos\Media\Command\MediaCommandController

상속: extends Neos\Flow\Cli\CommandController
파일 보기 프로젝트 열기: neos/neos-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$assetRepository Neos\Media\Domain\Repository\AssetRepository
$asyncThumbnails boolean If enabled
$dbalConnection Doctrine\DBAL\Connection
$entityManager Doctrine\Common\Persistence\ObjectManager
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$thumbnailRepository Neos\Media\Domain\Repository\ThumbnailRepository
$thumbnailService Neos\Media\Domain\Service\ThumbnailService

공개 메소드들

메소드 설명
clearThumbnailsCommand ( string $preset = null ) : void Remove thumbnails
createThumbnailsCommand ( string $preset = null, boolean $async = null ) : void Create thumbnails
importResourcesCommand ( boolean $simulate = false ) : void Import resources to asset management
renderThumbnailsCommand ( integer $limit = null ) : void Render ungenerated thumbnails

보호된 메소드들

메소드 설명
initializeConnection ( ) : void Initializes the DBAL connection which is currently bound to the Doctrine Entity Manager

메소드 상세

clearThumbnailsCommand() 공개 메소드

Removes all thumbnail objects and their resources. Optional preset parameter to only remove thumbnails matching a specific thumbnail preset configuration.
public clearThumbnailsCommand ( string $preset = null ) : void
$preset string Preset name, if provided only thumbnails matching that preset are cleared
리턴 void

createThumbnailsCommand() 공개 메소드

Creates thumbnail images based on the configured thumbnail presets. Optional preset parameter to only create thumbnails for a specific thumbnail preset configuration. Additionally accepts a async parameter determining if the created thumbnails are generated when created.
public createThumbnailsCommand ( string $preset = null, boolean $async = null ) : void
$preset string Preset name, if not provided thumbnails are created for all presets
$async boolean Asynchronous generation, if not provided the setting ``Neos.Media.asyncThumbnails`` is used
리턴 void

importResourcesCommand() 공개 메소드

This command detects Flow "PersistentResource"s which are not yet available as "Asset" objects and thus don't appear in the asset management. The type of the imported asset is determined by the file extension provided by the PersistentResource.
public importResourcesCommand ( boolean $simulate = false ) : void
$simulate boolean If set, this command will only tell what it would do instead of doing it right away
리턴 void

initializeConnection() 보호된 메소드

Initializes the DBAL connection which is currently bound to the Doctrine Entity Manager
protected initializeConnection ( ) : void
리턴 void

renderThumbnailsCommand() 공개 메소드

Loops over ungenerated thumbnails and renders them. Optional limit parameter to limit the amount of thumbnails to be rendered to avoid memory exhaustion.
public renderThumbnailsCommand ( integer $limit = null ) : void
$limit integer Limit the amount of thumbnails to be rendered to avoid memory exhaustion
리턴 void

프로퍼티 상세

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

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

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

If enabled
protected bool $asyncThumbnails
리턴 boolean

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

protected Connection,Doctrine\DBAL $dbalConnection
리턴 Doctrine\DBAL\Connection

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

protected ObjectManager,Doctrine\Common\Persistence $entityManager
리턴 Doctrine\Common\Persistence\ObjectManager

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

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
리턴 Neos\Flow\Persistence\PersistenceManagerInterface

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

protected ThumbnailRepository,Neos\Media\Domain\Repository $thumbnailRepository
리턴 Neos\Media\Domain\Repository\ThumbnailRepository

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

protected ThumbnailService,Neos\Media\Domain\Service $thumbnailService
리턴 Neos\Media\Domain\Service\ThumbnailService