PHP Class Neos\Fusion\TypoScriptObjects\ResourceUriImplementation

The following TS properties are evaluated: * path * package * resource * localize See respective getters for descriptions
Inheritance: extends AbstractTypoScriptObject
Show file Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$i18nService Neos\Flow\I18n\Service
$resourceManager Neos\Flow\ResourceManagement\ResourceManager

Public Methods

Method Description
evaluate ( ) : string Returns the absolute URL of a resource
getPackage ( ) : string Target package key (only required for relative paths)
getPath ( ) : string The location of the resource, can be either a path relative to the Public resource directory of the package or a resource://.
getResource ( ) : PersistentResource If specified, this resource object is used instead of the path and package information
isLocalize ( ) : boolean Whether resource localization should be attempted or not, defaults to TRUE

Method Details

evaluate() public method

Returns the absolute URL of a resource
public evaluate ( ) : string
return string

getPackage() public method

Target package key (only required for relative paths)
public getPackage ( ) : string
return string

getPath() public method

.. URI
public getPath ( ) : string
return string

getResource() public method

If specified, this resource object is used instead of the path and package information
public getResource ( ) : PersistentResource
return Neos\Flow\ResourceManagement\PersistentResource

isLocalize() public method

Whether resource localization should be attempted or not, defaults to TRUE
public isLocalize ( ) : boolean
return boolean

Property Details

$i18nService protected property

protected Service,Neos\Flow\I18n $i18nService
return Neos\Flow\I18n\Service

$resourceManager protected property

protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager
return Neos\Flow\ResourceManagement\ResourceManager