Antville 1.3 API Reference
Class Index | File Index

Classes


Class Poll


Extends HopObject.

Defined in: Poll.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Poll(question)
Field Summary
Field Attributes Field Name and Description
<private>  
 
 
 
 
 
 
 
 
 
Method Summary
Method Attributes Method Name and Description
 
closed_macro(param, format)
 
 
 
getPermission(action)
<static>  
Poll.getStatus(ctor)
 
input_macro(param, name)
 
link_macro(param, action, text)
<static>  
Poll.remove()
 
update(data)
 
vote(data)
 
Methods borrowed from class HopObject:
addTag, checkbox_macro, created_macro, creator_macro, deleteMetadata, getFormValue, getMetadata, getTags, getTitle, handleMetadata, kind_macro, link_filter, log, macro_macro, map, metadata_macro, modified_macro, modifier_macro, notify, onRequest, radiobutton_macro, removeTag, select_macro, self_macro, setMetadata, setTags, skin_macro, textarea_macro, toString, touch, type_macro, upload_macro
Class Detail
Poll(question)
Parameters:
{String} question
Field Detail
<private> {Choice[]} _children

{String} closed

{Date} created

{User} creator

{Date} modified

{User} modifier

{String} question

{Site} site

{String} status

{Vote[]} votes
Method Detail
closed_macro(param, format)
Parameters:
{Object} param
{String} format

{String} getConfirmText()
Returns:
{String}

{Object} getFormOptions(name)
Parameters:
{String} name
Returns:
{Object}

{Boolean} getPermission(action)
Parameters:
{String} action
Returns:
{Boolean}

<static> {String[]} Poll.getStatus(ctor)
Parameters:
{String} ctor
Returns:
{String[]}
See:
defineConstants

input_macro(param, name)
Parameters:
{Object} param
{String} name
See:
HopObject#link_macro

link_macro(param, action, text)
Parameters:
{Object} param
{String} action
{String} text
See:
HopObject#link_macro

<static> Poll.remove()

update(data)
Parameters:
{Object} data

vote(data)
Parameters:
{Object} data

votes_macro()

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jun 27 2011 21:09:46 GMT+0200 (CEST)