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

Actions
admins_action
list all admins of a site
contributors_action
list all contributors of a site
create_action
action for creating a new Membership
edit_action
edit actions for user profiles
login_action
login action
logout_action
logout action
main_action
main action, lists all members in alpabetical order
managers_action
list all content managers of a site
memberships_action
action for displaying memberships of a user
register_action
register action
sendpwd_action
password reminder action
subscribers_action
list all subscribers of a site
subscriptions_action
action for displaying subscriptions of a user
updated_action
action for displaying the last updated site list of a user's subscriptions
 
Functions
checkAccess(action, usr, level)
permission check (called by hopobject.onRequest())
checkEditMembers(usr, level)
check if user is allowed to edit the memberlist of this site
deleteAll()
function deletes all members
deleteMembership(membership)
function deletes a member
evalLogin(username, password)
check if a login attempt is ok
evalNewMembership(username, creator)
function adds a user with a given username to the list of members of this site
evalRegistration(param)
check if a registration attempt is ok
getMembershipLevel(usr)
function retrieves the level of a users membership
renderMemberlist()
render the list of members of a site
renderSubscriptionView(collection, title)
render the whole page containing a list of sites (subscriptions)
renderView(collection, title)
render the whole page containing a list of members
searchUser(key)
function searches for users using part of username
sendPwd(email)
function retrieves a list of usernames/passwords for a submitted email-address and sends them as mail
updateUser(param)
update user-profile
 
Macros
MemberMgr.membership
macro renders a link to signup if user is not member of this site if user is member, it displays the level of membership
MemberMgr.subscribelink
macro renders a link to signup-action but only if user is not a member of this site and the site is public
MemberMgr.subscriptionslink
macro renders a link to signup-action but only if user is not a member of this site
 
Skins
login.skin
response.action
mailnewmember.skin
param.account, param.creator, param.site, param.url
mailpassword.skin
param.text
mailregconfirm.skin
param.name, param.password
main.skin
response.memberlist, response.pagenavigation
new.skin
response.action, response.searchresult
register.skin
response.action
searchresult.skin
param.result, response.action
searchresultitem.skin
param.description, param.name
sendpwd.skin
response.action
statusloggedin.skin
statusloggedout.skin
 


type.properties
##
## collections
##
_children               = collection(Membership)
_children.local         = SITE_ID
_children.foreign       = MEMBERSHIP_F_SITE
_children.accessname    = MEMBERSHIP_USERNAME
_children.order         = MEMBERSHIP_USERNAME asc

admins                  = collection(Membership)
admins.local            = SITE_ID
admins.foreign          = MEMBERSHIP_F_SITE
admins.accessname       = MEMBERSHIP_USERNAME
admins.filter           = MEMBERSHIP_LEVEL = 131071
admins.order            = MEMBERSHIP_USERNAME asc

managers                = collection(Membership)
managers.local          = SITE_ID
managers.foreign        = MEMBERSHIP_F_SITE
managers.accessname     = MEMBERSHIP_USERNAME
managers.filter         = MEMBERSHIP_LEVEL = 16383
managers.order          = MEMBERSHIP_USERNAME asc

contributors            = collection(Membership)
contributors.local      = SITE_ID
contributors.foreign    = MEMBERSHIP_F_SITE
contributors.accessname = MEMBERSHIP_USERNAME
contributors.filter     = MEMBERSHIP_LEVEL = 9361
contributors.order      = MEMBERSHIP_USERNAME asc

subscribers             = collection(Membership)
subscribers.local       = SITE_ID
subscribers.foreign     = MEMBERSHIP_F_SITE
subscribers.accessname  = MEMBERSHIP_USERNAME
subscribers.filter      = MEMBERSHIP_LEVEL = 0
subscribers.order       = MEMBERSHIP_USERNAME asc