Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/lesson/format.php File Reference

Go to the source code of this file.

Data Structures

class  qformat_default

Namespaces

namespace  mod
 

Local Library of functions for module scorm.


Functions

if(!defined('SHORTANSWER')) lesson_save_question_options ($question, $lesson)

Function Documentation

if (!defined('SHORTANSWER')) lesson_save_question_options ( question,
lesson 
)

#@+ The core question types.

These used to be in lib/questionlib.php, but are being deprecated. Copying them here to keep this code working for now.#@- Given some question info and some data about the the answers this function parses, organises and saves the question

This is only used when IMPORTING questions and is only called from format.php Lifted from mod/quiz/lib.php - 1. all reference to oldanswers removed 2. all reference to quiz_multichoice table removed 3. In SHORTANSWER questions usecase is store in the qoption field 4. In NUMERIC questions store the range as two answers 5. TRUEFALSE options are ignored 6. For MULTICHOICE questions with more than one answer the qoption field is true

Parameters:
opject$questionContains question data like question, type and answers.
Returns:
object Returns $result->error or $result->notice.

Perform sanity checks on fractional grades

Perform sanity checks on fractional grades

Perform sanity checks on fractional grades

Definition at line 70 of file format.php.

Here is the call graph for this function:

Here is the caller graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations