Stud.IP
6.1
|
Public Member Functions | |
__construct (AssetModel $model) | |
setOriginalFilename ($filename) | |
isNew () | |
setContent ($content) | |
getContent () | |
getDownloadLink () | |
delete () | |
Default asset implementation
Will store the asset in Stud.IP's upload folders and the neccessary metadata in the database.
__construct | ( | AssetModel | $model | ) |
AssetModel | $model | Model to use |
delete | ( | ) |
Deletes this asset
Implements Asset.
getContent | ( | ) |
Returns the content of the asset.
Implements Asset.
getDownloadLink | ( | ) |
Returns a download to the asset.
String | containing the uri to download the asset |
Implements Asset.
isNew | ( | ) |
Returns whether the asset is new (and needs to be compiled/created). This will return true when the file is either really new or if the source file has changed, when in development mode).
Implements Asset.
setContent | ( | $content | ) |
setOriginalFilename | ( | $filename | ) |
Sets the original file name of the source file.
String | $filename | Name of the original file |
Implements Asset.