This class represents a question. It has a title, a text, a category and a type.
Active bindings
list
returns the question as a list
Methods
Method new()
This function initializes the question with a title
Arguments
data
A list containing the data of the question
Returns
The question object
Method import_gift()
This function imports a question from a string
Usage
Question$import_gift(string)
Arguments
string
A string containing the question data in GIFT format
Returns
The question object
Method export_gift()
This function returns the question as a list
Returns
A list representation of the question
Method import()
This function imports a question from a list
Arguments
data
A list containing the question data
Returns
The question object
This function prints the question
Method clone()
The objects of this class are cloneable with this method.
Usage
Question$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.