class Thumbnailer extends Controller (View source)

Traits

Trait ApplicationAwareTrait A trait used with ApplicationAwareInterface

Properties

protected Application $app from  ApplicationAwareTrait
protected $helpers from  AbstractController
protected $sets from  AbstractController
protected $action from  AbstractController
protected $request from  AbstractController
protected $parameters from  AbstractController
protected $view from  Controller
protected $viewPath from  Controller
protected $theme from  Controller
protected $controllerActionPath from  Controller
protected $themeViewTemplate from  Controller
private ResponseFactory $factory
private AtomicThumbnailStream $stream
private BasicThumbnailer $thumbnailer
private EntityManagerInterface $entityManager

Methods

setApplication(Application $app)

Setter method for the application

__construct(AtomicThumbnailStream $stream, ResponseFactory $factory, BasicThumbnailer $thumbnailer, EntityManagerInterface $entityManager)

No description

mixed
getRequest()

No description

setRequest(mixed $request)

No description

requireAsset()

No description

addHeaderItem(string $item)

Adds an item to the view's header. This item will then be automatically printed out before the section of the page.

addFooterItem(string $item)

Adds an item to the view's footer. This item will then be automatically printed out before the section of the page.

set($key, $val)

No description

getSets()

No description

getHelperObjects()

No description

get($key = null, $defaultValue = null)

No description

getTask()

No description

getAction()

No description

getParameters()

No description

on_start()

No description

on_before_render()

No description

isPost() deprecated

No description

post($key = null, $defaultValue = null)

No description

redirect()

No description

runTask($action, $parameters)

No description

runAction($action, $parameters = array())

No description

request($key = null)

No description

setViewObject(AbstractView $view)

No description

setTheme($mixed)

No description

getTheme()

No description

setThemeViewTemplate($template)

No description

getThemeViewTemplate()

No description

getControllerActionPath()

No description

getViewObject()

No description

action()

No description

generate()

No description

buildThumbnail(array $item)

No description

bool
attemptBuild(File $file, array $thumbnail)

Try building an unbuilt thumbnail.

completeBuild(File $file, $thumbnail)

Mark the build complete.

null|array
getDimensions(array $thumbnail)

Get the dimensions out of a thumbnail array.

bool
isBuilt(File $file, array $thumbnail)

No description

Details

setApplication(Application $app)

Setter method for the application

Parameters

Application $app

__construct(AtomicThumbnailStream $stream, ResponseFactory $factory, BasicThumbnailer $thumbnailer, EntityManagerInterface $entityManager)

No description

Parameters

AtomicThumbnailStream $stream
ResponseFactory $factory
BasicThumbnailer $thumbnailer
EntityManagerInterface $entityManager

mixed getRequest()

No description

Return Value

mixed

setRequest(mixed $request)

No description

Parameters

mixed $request

requireAsset()

No description

addHeaderItem(string $item)

Adds an item to the view's header. This item will then be automatically printed out before the section of the page.

Parameters

string $item

addFooterItem(string $item)

Adds an item to the view's footer. This item will then be automatically printed out before the section of the page.

Parameters

string $item

set($key, $val)

No description

Parameters

$key
$val

getSets()

No description

shouldRunControllerTask()

No description

getHelperObjects()

No description

get($key = null, $defaultValue = null)

No description

Parameters

$key
$defaultValue

getTask()

No description

getAction()

No description

getParameters()

No description

on_start()

No description

on_before_render()

No description

isPost() deprecated

deprecated

No description

post($key = null, $defaultValue = null)

No description

Parameters

$key
$defaultValue

redirect()

No description

runTask($action, $parameters)

No description

Parameters

$action
$parameters

runAction($action, $parameters = array())

No description

Parameters

$action
$parameters

request($key = null)

No description

Parameters

$key

setViewObject(AbstractView $view)

No description

Parameters

AbstractView $view

setTheme($mixed)

No description

Parameters

$mixed

getTheme()

No description

setThemeViewTemplate($template)

No description

Parameters

$template

getThemeViewTemplate()

No description

getControllerActionPath()

No description

getViewObject()

No description

action()

No description

generate()

No description

private buildThumbnail(array $item)

No description

Parameters

array $item

private bool attemptBuild(File $file, array $thumbnail)

Try building an unbuilt thumbnail.

Parameters

File $file
array $thumbnail

Return Value

bool

private completeBuild(File $file, $thumbnail)

Mark the build complete.

Parameters

File $file
$thumbnail

private null|array getDimensions(array $thumbnail)

Get the dimensions out of a thumbnail array.

Parameters

array $thumbnail

Return Value

null|array

[ width, height, crop ]

private bool isBuilt(File $file, array $thumbnail)

No description

Parameters

File $file
array $thumbnail

Return Value

bool

private null|StorageLocationInterface storageLocation()

No description

Return Value

null|StorageLocationInterface