VOS.VirtuosoOdsControllersPolls

  • Topic
  • Discussion
  • VOS.VirtuosoOdsControllersPolls(Last) -- DAVWikiAdmin? , 2017-06-13 05:40:47 Edit WebDAV System Administrator 2017-06-13 05:40:47

    Polls Controllers


    poll.get (
        poll_id integer
      )
    poll.new (
        inst_id integer,
        name varchar,
        description varchar := null,
        tags varchar := '',
        multi_vote integer := 0,
        vote_result integer := 1,
        vote_result_before integer := 0,
        vote_result_opened integer := 1,
        date_start date := null,
        date_end date := null,
        mode varchar := 'S'
      )
    poll.edit (
        poll_id integer,
        name varchar,
        description varchar := null,
        tags varchar := '',
        multi_vote integer := 0,
        vote_result integer := 1,
        vote_result_before integer := 0,
        vote_result_opened integer := 1,
        date_start date := null,
        date_end date := null,
        mode varchar := 'S'
      )
    poll.delete (
        poll_id integer
      )
    poll.question.new (
        poll_id integer,
        questionNo integer,
    
        text varchar,
        description varchar := null,
        required integer := 1,
        type varchar := 'M',          -- M (multi choice) or N (number value)
        answer any                    -- URL encoded pairs 'name'='value' separated by comma.
                                      -- Ex. - choices%3D2%2Callowed%3D1%2Canswer_1%3DA%2Canswer_2%3DB 
                                      --       decodes to  choices=2,allowed=1,answer_1=A,answer_2=B
      )
    poll.question.delete (
        poll_id integer,
        questionNo integer
      )
    poll.activate (
        poll_id integer
      )
    poll.close (
        poll_id integer
      )
    poll.clear (
        poll_id integer
      )
    poll.vote (
        poll_id integer
      )
    poll.vote.answer (
        vote_id integer,
        questionNo integer,
        answerNo integer,
        value varchar
      )
    poll.result (
        poll_id integer
      )
    poll.comment.get (
        comment_id integer
      )
    poll.comment.new (
        poll_id integer,
        parent_id integer := null,
        title varchar,
        text varchar,
        name varchar,
        email varchar,
        url varchar
      )
    poll.comment.delete (
        comment_id integer
      )
    poll.options.set (
        inst_id integer,
        options any                   -- URL encoded pairs 'name'='value' separated by comma.
                                      -- Ex. - chars%3D70%2Crows%3D20 
                                      --       decodes to  chars=70,rows=20
      )
    poll.options.get (
        inst_id integer,
      )
    

    References