Prototype File |
|
Actions |
delete_action delete action |
edit_action edit action |
main_action main action simply redirects to "view" url |
Functions |
checkAccess(action, usr, level) permission check (called by hopobject.onRequest()) |
checkDelete(usr, level) check if user is allowed to delete a file |
checkEdit(usr, level) check if user is allowed to edit a file |
constructor(creator) constructor function |
evalFile(param, modifier) function checks if new property-values for a file are correct |
getUrl() return the url of the file |
Macros |
File.alias macro rendering alias |
File.clicks macro rendering the number of requests so far for a file-object |
File.deletelink macro rendering a link to delete if user is creator of this file |
File.description macro rendering description |
File.editlink macro renders a link for editing a file |
File.filesize macro rendering filesize |
File.filetype macro rendering the file extension from the name |
File.mimetype macro rendering the mimetype |
File.url macro renders the url of this file |
File.viewlink macro rendering a link to view the file |
Skins |
edit.skin response.action |
main.skin param.text |
mgrlistitem.skin |
type.properties |
_db = antville _table = AV_FILE _id = FILE_ID _parent = site.files ## ## object references ## site = object(Site) site.local = FILE_F_SITE site.foreign = SITE_ID creator = object(User) creator.local = FILE_F_USER_CREATOR creator.foreign = USER_ID modifier = object(User) modifier.local = FILE_F_USER_MODIFIER modifier.foreign = USER_ID ## ## primitive properties ## alias = FILE_ALIAS mimetype = FILE_MIMETYPE name = FILE_NAME filesize = FILE_SIZE description = FILE_DESCRIPTION requestcnt = FILE_REQUESTCNT requestcnt.private = true createtime = FILE_CREATETIME modifytime = FILE_MODIFYTIME |