dokeos-backup
[ class tree: dokeos-backup ] [ index: dokeos-backup ] [ all elements ]

Class: SurveyQuestion

Source Location: /main/coursecopy/classes/SurveyQuestion.class.php

Class Overview

Resource
   |
   --SurveyQuestion

An QuizQuestion


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: Resource

Resource::Resource()
Create a new Resource
Resource::add_linked_resource()
Add linked resource
Resource::get_id()
Returns the id of this resource.
Resource::get_linked_resources()
Get linked resources
Resource::get_tool()
Get the constant which defines the tool of this resource. This is used in the item_properties table.
Resource::get_type()
Resturns the type of this resource
Resource::is_restored()
Check if this resource is allready restored in the destination course.
Resource::links_to()
Checks if this resource links to a given resource
Resource::set_new_id()
Set the destination id
Resource::show()
Show this resource

Class Details

[line 31]
An QuizQuestion



Tags:

author:  Yannick Warnier <yannick.warnier@dokeos.com>


[ Top ]


Class Variables

$display =

[line 49]

Display ?


Type:   mixed


[ Top ]

$max_value =

[line 61]

Maximum value for the vote


Type:   mixed


[ Top ]

$options =

[line 65]

Question's options


Type:   mixed


[ Top ]

$shared_question_id =

[line 57]

Shared question ID


Type:   mixed


[ Top ]

$sort =

[line 53]

Sorting order


Type:   mixed


[ Top ]

$survey_id =

[line 36]

Survey ID


Type:   mixed


[ Top ]

$survey_question =

[line 40]

Question and question comment


Type:   mixed


[ Top ]

$survey_question_comment =

[line 41]


Type:   mixed


[ Top ]

$survey_question_type =

[line 45]

Question type


Type:   mixed


[ Top ]



Class Methods


constructor SurveyQuestion [line 78]

SurveyQuestion SurveyQuestion( int $id, int $survey_id, string $survey_question, string $survey_question_comment, string $type, string $display, int $sort, int $shared_question_id, int $max_value)

Create a new SurveyQuestion



Parameters:

int   $id  
int   $survey_id  
string   $survey_question  
string   $survey_question_comment  
string   $type  
string   $display  
int   $sort  
int   $shared_question_id  
int   $max_value  

[ Top ]

method add_answer [line 97]

void add_answer( string $option_text, int $sort)

Add an answer option to this SurveyQuestion



Parameters:

string   $option_text  
int   $sort  

[ Top ]

method show [line 107]

void show( )

Show this question



Overrides Resource::show() (Show this resource)

[ Top ]


Documentation generated on Wed, 05 Sep 2007 06:15:11 +0200 by phpDocumentor 1.4.0