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

Class: Quiz

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

Class Overview

Resource
   |
   --Quiz

An Quiz


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 Quiz



Tags:

author:  Bart Mollet <bart.mollet@hogent.be>


[ Top ]


Class Variables

$active =

[line 52]

Active


Type:   mixed


[ Top ]

$description =

[line 40]

The description


Type:   mixed


[ Top ]

$media =

[line 58]

Sound or video file

This should be the id of the file and not the file-name like in the database!



Type:   mixed


[ Top ]

$question_ids =

[line 62]

Questions


Type:   mixed


[ Top ]

$quiz_type =

[line 48]

Type


Type:   mixed


[ Top ]

$random =

[line 44]

random


Type:   mixed


[ Top ]

$title =

[line 36]

The title


Type:   mixed


[ Top ]



Class Methods


constructor Quiz [line 71]

Quiz Quiz( $id, string $title, string $description, int $random, int $type, int $active, $media)

Create a new Quiz



Parameters:

string   $title  
string   $description  
int   $random  
int   $type  
int   $active  
   $id  
   $media  

[ Top ]

method add_question [line 85]

void add_question( $id)

Add a question to this Quiz



Parameters:

   $id  

[ Top ]

method show [line 92]

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