PHP Класс Neos\Media\Command\MediaCommandController

Наследование: extends Neos\Flow\Cli\CommandController
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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