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

Macros
User.email
macro rendering email
User.name
macro rendering username
User.password
macro rendering password
User.publishemail
macro rendering checkbox for publishemail
User.sitelist
macro renders the sites the user is a member of or has subscribed to in order of their last update-timestamp
User.sysmgr_blocked
macro renders the block-state of this user
User.sysmgr_count
macro counts
User.sysmgr_editlink
function renders an edit-link
User.sysmgr_lastitems
macro renders links to last items of this user
User.sysmgr_lastvisit
macro renders the timestamp of last visit
User.sysmgr_registered
macro renders the timestamp of registration
User.sysmgr_statusflags
function renders the statusflags for this user
User.sysmgr_sysadmin
macro renders the sysadmin-state of this user
User.sysmgr_trusted
macro renders the trust-state of this user
User.sysmgr_username
macro renders the username as plain text
User.url
macro rendering URL
 
Skins
edit.skin
response.action
sitelist.skin
subscriptions.skin
response.sitelist
sysmgr_edit.skin
request.item, request.page, response.action
sysmgr_listitem.skin
 


type.properties
_db = antville
_table = AV_USER
_id = USER_ID
_name = USER_NAME
_parent = root.users

##
## primitive properties
##
name           = USER_NAME
password       = USER_PASSWORD
email          = USER_EMAIL
publishemail   = USER_EMAIL_ISPUBLIC
url            = USER_URL
registered     = USER_REGISTERED
lastVisit      = USER_LASTVISIT
blocked        = USER_ISBLOCKED
trusted        = USER_ISTRUSTED
sysadmin       = USER_ISSYSADMIN

##
## collections
##
_children               = collection(Membership)
_children.local         = USER_ID
_children.foreign       = MEMBERSHIP_F_USER
_children.order         = MEMBERSHIP_LEVEL desc, MEMBERSHIP_CREATETIME desc

memberships             = collection(Membership)
memberships.local       = USER_ID
memberships.foreign     = MEMBERSHIP_F_USER
memberships.filter      = MEMBERSHIP_LEVEL > 0
memberships.order       = MEMBERSHIP_CREATETIME desc

subscriptions           = collection(Membership)
subscriptions.local     = USER_ID
subscriptions.foreign   = MEMBERSHIP_F_USER
subscriptions.filter    = MEMBERSHIP_LEVEL = 0
subscriptions.order     = MEMBERSHIP_CREATETIME desc

stories                 = collection(Story)
stories.local           = USER_ID
stories.foreign         = TEXT_F_USER_CREATOR
stories.filter          = TEXT_PROTOTYPE = 'Story'
stories.order           = TEXT_MODIFYTIME desc

comments                = collection(Comment)
comments.local          = USER_ID
comments.foreign        = TEXT_F_USER_CREATOR
comments.filter         = TEXT_PROTOTYPE = 'Comment'
comments.order          = TEXT_MODIFYTIME desc

images                  = collection(Image)
images.local            = USER_ID
images.foreign          = IMAGE_F_USER_CREATOR
images.filter           = IMAGE_PROTOTYPE = 'Image'
images.order            = IMAGE_CREATETIME desc

files                   = collection(File)
files.local             = USER_ID
files.foreign           = FILE_F_USER_CREATOR
files.order             = FILE_CREATETIME desc

sites                   = collection(Site)
sites.local             = USER_ID
sites.foreign           = SITE_F_USER_CREATOR
sites.order             = SITE_CREATETIME desc