Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
Asset Interface Reference
Inheritance diagram for Asset:

Public Member Functions

 setOriginalFilename ($filename)
 isNew ()
 setContent ($content)
 getContent ()
 getDownloadLink ()
 delete ()

Detailed Description

Interface for an asset file.

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

Jan-Hendrik Willms GPL2 or any later version
Stud.IP 3.4

Member Function Documentation

delete ( )

Deletes this asset

Implemented in PluginAsset.

getContent ( )

Returns the content of the asset.

String containing the content of the asset

Implemented in PluginAsset.

getDownloadLink ( )

Returns a download to the asset.

Stringcontaining the uri to download the asset

Implemented in PluginAsset.

isNew ( )

Returns whether the asset is new (and needs to be compiled/created).

bool indicating whether the asset if new

Implemented in PluginAsset.

setContent (   $content)

Sets the content of the asset.

String$contentContent of the asset

Implemented in PluginAsset.

setOriginalFilename (   $filename)

Sets the original file name of the source file.

String$filenameName of the original file

Implemented in PluginAsset.

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