class ImageEditorService (View source)

Constants

DEFAULT_EDITOR

Properties

protected EntityManagerInterface $entityManager
protected $imageEditorRepository
protected Repository $config
protected $app

Methods

__construct(EntityManagerInterface $entityManager, Application $app, Repository $config)

No description

checkDefaultEditor()

No description

setupDefaultEditor()

No description

removeEditor($editor)

No description

Editor[]
getListByPackage(Package $package)

Return an array of Types that are associated with a specific package.

addEditor(string $handle, string $name, Package $package = null)

No description

Editor[]
getAllEditors()

No description

array
getEditorList()

No description

getEditorByHandle(string $handle)

No description

getActiveEditor()

No description

setActiveEditor(Editor $editor)

No description

getDefaultEditor()

No description

renderActiveImageEditor(Version $fileVersion)

No description

renderActiveThumbnailEditor(Version $fileVersion, Version $thumbnail)

No description

Details

__construct(EntityManagerInterface $entityManager, Application $app, Repository $config)

No description

Parameters

EntityManagerInterface $entityManager
Application $app
Repository $config

private checkDefaultEditor()

No description

private setupDefaultEditor()

No description

removeEditor($editor)

No description

Parameters

$editor

Editor[] getListByPackage(Package $package)

Return an array of Types that are associated with a specific package.

Parameters

Package $package

Return Value

Editor[]

ErrorList addEditor(string $handle, string $name, Package $package = null)

No description

Parameters

string $handle
string $name
Package $package

Return Value

ErrorList

Editor[] getAllEditors()

No description

Return Value

Editor[]

array getEditorList()

No description

Return Value

array

Editor getEditorByHandle(string $handle)

No description

Parameters

string $handle

Return Value

Editor

getActiveEditor()

No description

setActiveEditor(Editor $editor)

No description

Parameters

Editor $editor

Editor getDefaultEditor()

No description

Return Value

Editor

renderActiveImageEditor(Version $fileVersion)

No description

Parameters

Version $fileVersion

renderActiveThumbnailEditor(Version $fileVersion, Version $thumbnail)

No description

Parameters

Version $fileVersion
Version $thumbnail