PublicPackageFile

final class \TYPO3\CMS\Core\SystemResource\Type\PublicPackageFile

Extends
PackageResource
Implements
PublicResourceInterface

Table of Contents

Interfaces

PublicResourceInterface
This interface is public API and can be referenced in third party code or throughout the TYPO3 core.

Properties

$identifier  : PackageResourceIdentifier
$resourceDefinition  : ResourceDefinitionInterface

Methods

__construct()  : mixed
__toString()  : string
fromPackageResource()  : self
getContents()  : string
getExtension()  : string
getHash()  : string
getImageDimension()  : ImageDimension
Returns the dimensions of the referenced image.
getMimeType()  : string
getName()  : string
getNameWithoutExtension()  : string
getPublicUri()  : UriInterface
getRelativePath()  : string
getResourceIdentifier()  : string
isImage()  : bool
Returns whether the referenced system resource is an image.
isPublished()  : bool
process()  : ProcessedFile|ProcessedResource
Returns a processed (resized/cropped/converted) version of this resource. Unlike File::process(), which delegates to the ResourceStorage it already holds a reference to, this resource is constructed directly by SystemResourceFactory, not through a service with a FileProcessingService reference to delegate to - so this reaches it the same way GraphicalFunctions and the processors themselves do.

Properties

Methods

__toString()

public __toString() : string

Return values

string

fromPackageResource()

public static fromPackageResource(PackageResource $packageResource) : self

Parameters

$packageResource : PackageResource

Return values

self

getExtension()

public getExtension() : string

Return values

string

getName()

public getName() : string

Return values

string

getNameWithoutExtension()

public getNameWithoutExtension() : string

Return values

string

getRelativePath()

public getRelativePath() : string

Return values

string

getResourceIdentifier()

public getResourceIdentifier() : string

Return values

string

isPublished()

public isPublished() : bool

Return values

bool

process()

Returns a processed (resized/cropped/converted) version of this resource. Unlike File::process(), which delegates to the ResourceStorage it already holds a reference to, this resource is constructed directly by SystemResourceFactory, not through a service with a FileProcessingService reference to delegate to - so this reaches it the same way GraphicalFunctions and the processors themselves do.

public process(string $taskType, array $configuration) : ProcessedFile|ProcessedResource

Parameters

$taskType : string

The task type of this processing

$configuration : array

the processing configuration, see manual for that

Return values

ProcessedFile|ProcessedResource
On this page