Stud.IP  5.4
AssetFactory Interface Reference
Inheritance diagram for AssetFactory:
PluginAssetFactory

Public Member Functions

 createCSSFile ($filename, array $metadata=[])
 
 createJSFile ($filename, array $metadata=[])
 

Detailed Description

Interface for the assets factory.

Implement your own factory and asset objects if you want to use your own storage for assets.

Author
Jan-Hendrik Willms tleil.nosp@m.ax+s.nosp@m.tudip.nosp@m.@gma.nosp@m.il.co.nosp@m.m GPL2 or any later version
Since
Stud.IP 3.4

Member Function Documentation

◆ createCSSFile()

createCSSFile (   $filename,
array  $metadata = [] 
)

Restores or create a css file based on the given information.

Parameters
String$filenameFilename of the original file
Array$metadataPotential metadata
Returns
Assets

Implemented in PluginAssetFactory.

◆ createJSFile()

createJSFile (   $filename,
array  $metadata = [] 
)

Restores or create a js file based on the given information.

Parameters
String$filenameFilename of the original file
Array$metadataPotential metadata
Returns
Assets

Implemented in PluginAssetFactory.


The documentation for this interface was generated from the following file: