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

Class: QuizQuestion

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

Class Overview

Resource
   |
   --QuizQuestion

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:  Bart Mollet <bart.mollet@hogent.be>


[ Top ]


Class Variables

$answers =

[line 56]

Answers


Type:   mixed


[ Top ]

$description =

[line 40]

The description


Type:   mixed


[ Top ]

$ponderation =

[line 44]

Ponderation


Type:   mixed


[ Top ]

$position =

[line 52]

Position


Type:   mixed


[ Top ]

$question =

[line 36]

The question


Type:   mixed


[ Top ]

$quiz_type =

[line 48]

Type


Type:   mixed


[ Top ]



Class Methods


constructor QuizQuestion [line 65]

QuizQuestion QuizQuestion( $id, string $question, string $description, int $ponderation, int $type, int $position)

Create a new QuizQuestion



Parameters:

string   $question  
string   $description  
int   $ponderation  
int   $type  
int   $position  
   $id  

[ Top ]

method add_answer [line 78]

void add_answer( $answer_text, $correct, $comment, $ponderation, $position, $hotspot_coordinates, $hotspot_type)

Add an answer to this QuizQuestion



Parameters:

   $answer_text  
   $correct  
   $comment  
   $ponderation  
   $position  
   $hotspot_coordinates  
   $hotspot_type  

[ Top ]

method show [line 93]

void show( )

Show this question



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

[ Top ]


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