Prototype Skin
ACTIONS | FUNCTIONS | MACROS | SKINS | TEMPLATES | TYPE.PROPERTIES

Actions
delete_action
delete action
diff_action
action rendering the differences between the original skin and the modified one
 
Functions
checkAccess(action, usr, level)
permission check (called by hopobject.onRequest())
checkDelete(usr, level)
check if user is allowed to delete this skin
constructor(layout, proto, name, creator)
constructor function for skin objects
 
Macros
Skin.deletelink
link to delete action
Skin.difflink
link to diff action
Skin.proto
drop the "global" prototype to display correct macro syntax
 
Skins
diff.skin
response.diff, response.status
diffline.skin
param.class, param.line, param.num, param.status
status.skin
statuscustom.skin
 


type.properties
_db = antville
_table = AV_SKIN

_id = SKIN_ID
_parent = layout.skins

##
## primitive properties
##
proto       = SKIN_PROTOTYPE
name        = SKIN_NAME
custom      = SKIN_ISCUSTOM
skin        = SKIN_SOURCE
createtime  = SKIN_CREATETIME
modifytime  = SKIN_MODIFYTIME

##
## object references
##
layout            = object(Layout)
layout.local      = SKIN_F_LAYOUT
layout.foreign    = LAYOUT_ID

creator           = object(User)
creator.local     = SKIN_F_USER_CREATOR
creator.foreign   = USER_ID

modifier          = object(User)
modifier.local    = SKIN_F_USER_MODIFIER
modifier.foreign  = USER_ID