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

Functions
constructor(title)
constructor function for choice objects
deleteAll()
function removes all votes from a choice
 
Macros
Choice.title
render the title of a choice, either as editor or as plain text
 
Skins
edit.skin
param.count
graph.skin
param.width
main.skin
param.checked, param.name, param.title, param.value
result.skin
param.count, param.graph, param.percent, param.text, param.title
 


type.properties
_db = antville
_table = AV_CHOICE
_id = CHOICE_ID
_parent = poll

##
## primitive properties
##
title       = CHOICE_TITLE
createtime  = CHOICE_CREATETIME
modifytime  = CHOICE_MODIFYTIME

##
## object references
##
poll           = object(Poll)
poll.local     = CHOICE_F_POLL
poll.foreign   = POLL_ID

##
## collections
##
_children         = collection(Vote)
_children.local   = CHOICE_ID
_children.foreign = VOTE_F_CHOICE