Procedural File: exercise_import.inc.php
Source Location: /main/exercice/export/exercise_import.inc.php
Page Details:
Tags:
elementData [line 643]
void elementData(
$parser, $data)
|
|
Parameters
endElement [line 604]
void endElement(
$parser $parser, $name $name)
|
|
Function used by the SAX xml parser when the parser meets a closing tag
Parameters
| $parser |
$parser |
xml parser created with "xml_parser_create()" |
| $name |
$name |
name of the element |
get_and_unzip_uploaded_exercise [line 35]
the get_and_unzip_uploaded_exercise(
)
|
|
Tags:
import_exercise [line 89]
an import_exercise(
$file)
|
|
main function to import an exercise,
Tags:
Parameters
parse_file [line 294]
void parse_file(
$exercisePath, $file, $questionFile)
|
|
Parameters
| |
$exercisePath |
|
| |
$file |
|
| |
$questionFile |
|
startElement [line 392]
void startElement(
unknown_type $parser, unknown_type $name, unknown_type $attributes)
|
|
Function used by the SAX xml parser when the parser meets a opening tag
Parameters
| unknown_type |
$parser |
xml parser created with "xml_parser_create()" |
| unknown_type |
$name |
name of the element |
| unknown_type |
$attributes |
|
tempdir [line 18]
void tempdir(
$dir, [ $prefix = 'tmp'], [ $mode = 0777])
|
|
function to create a temporary directory (SAME AS IN MODULE ADMIN)
Parameters
|
|