Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/question/type/numerical/db/upgrade.php File Reference

Go to the source code of this file.

Namespaces

namespace  qtype

Functions

 xmldb_qtype_numerical_upgrade ($oldversion)
 qtype_numerical_convert_text_format ($numericaloptions)
 qtype_numerical_convert_to_html ($text, $oldformat)

Function Documentation

qtype_numerical_convert_text_format ( numericaloptions)

Convert the ->questiontext and ->instructions fields to have the same text format. If they are already the same, do nothing. Otherwise, this method works by converting both to HTML.

Parameters:
$numericaloptionsthe data to convert.
Returns:
bool true if the resulting fields are in HTML, as opposed to one of the text-based formats.

Definition at line 256 of file upgrade.php.

Here is the call graph for this function:

Here is the caller graph for this function:

qtype_numerical_convert_to_html ( text,
oldformat 
)

Convert some content to HTML.

Parameters:
string$textthe content to convert to HTML
int$oldformatOne of the FORMAT_... constants.

Definition at line 285 of file upgrade.php.

Here is the call graph for this function:

Here is the caller graph for this function:

xmldb_qtype_numerical_upgrade ( oldversion)

Upgrade code for the numerical question type.

Parameters:
int$oldversionthe version we are upgrading from.

Definition at line 34 of file upgrade.php.

Here is the call graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations