Prototype SkinMgr |
|
Actions |
create_action action for creating a custom skin |
custom_action list only custom skins |
edit_action edit action |
main_action main action |
modified_action list only modified skins |
safe_action action renders the skinmgr menu in a safe (eg. unscrewable) way using the page skin of skinmgr instead of the one of the site so if something goes wrong this action should at least give users the p ... |
Functions |
checkAccess(action, usr, level) permission check (called by hopobject.onRequest()) |
checkEdit(usr, level) check if user is allowed to edit skins |
deleteAll() delete all skins belonging to this manager |
deleteSkin(s) function deletes a skin |
dumpToZip(z, fullExport, exportLog) dump all skins of this skinmgr |
evalCustomSkin(param, creator) create a custom skin |
evalImport(data) create the skins of an imported layout |
getCustomSkins() returns all custom skins for this layout including those from parent layouts (own custom skins override those of the parent layout) |
getOriginalSkin(proto, name) function gets the original skin |
getOriginalSkinSource(proto, name) function gets the source of the original skin |
getSkin(proto, name) retrieve a skin from the skinmanager collection |
getSkinDescription(prefix, key) retrieve the description (title, text) of a skin from a message file depending on site and root locale |
getSkinSource(proto, name) return the source of a skin |
renderList(collection, action) render a list of skins |
renderMacroList(param) render a list of macros FIXME: needs improvement |
renderTree(param, collection) render the tree view of skin manager |
renderTreeLeafs(skinset) render the list of skins of a branch |
saveSkin(param, usr) function stores skin |
Macros |
SkinMgr.globalmacros list macros available in a global skin of a prototype |
SkinMgr.macros list the (most important) macros available for a specific skin of a prototype (except Global) |
SkinMgr.prototypechooser renders a dropdown containing available prototypes |
SkinMgr.skinmacros list skin-specific macros (param, response etc.) of a skin |
Skins |
edit.skin param.action, param.skin, param.text, param.title, request.key, request.skinset, response.action |
main.skin response.list |
new.skin response.action |
page.skin response.body, response.title |
treebranch.skin param.anchor, param.children, param.class, param.skins, param.skinset, param.text, param.title |
treeleaf.skin param.action, param.key, param.skinset, param.status, param.text, param.title |
type.properties |
## ## collections ## _children = collection(Skin) _children.local = LAYOUT_ID _children.foreign = SKIN_F_LAYOUT _children.accessname = SKIN_NAME _children.group = SKIN_PROTOTYPE _children.loadmode = aggressive modified = collection(Skin) modified.local = LAYOUT_ID modified.foreign = SKIN_F_LAYOUT modified.filter = SKIN_ISCUSTOM = 0 modified.order = SKIN_PROTOTYPE, SKIN_NAME modified.loadmode = aggressive custom = collection(Skin) custom.local = LAYOUT_ID custom.foreign = SKIN_F_LAYOUT custom.filter = SKIN_ISCUSTOM = 1 custom.order = SKIN_PROTOTYPE, SKIN_NAME custom.loadmode = aggressive |