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

Procedural File: exercise_import.inc.php

Source Location: /main/exercice/export/exercise_import.inc.php



Page Details:



Tags:

author:  claro team <cvs@claroline.net>
author:  Guillaume Lederer <guillaume@claroline.net>
copyright:  (c) 2001-2006 Universite catholique de Louvain (UCL)
filesource:  Source Code for this file
license:  (GPL) GENERAL PUBLIC LICENSE








elementData [line 643]

void elementData( $parser, $data)



Parameters

   $parser  
   $data  
[ Top ]



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
[ Top ]



get_and_unzip_uploaded_exercise [line 35]

the get_and_unzip_uploaded_exercise( )



Tags:

return:  path of the temporary directory where the exercise was uploaded and unzipped


[ Top ]



import_exercise [line 89]

an import_exercise( $file)

main function to import an exercise,



Tags:

return:  array as a backlog of what was really imported, and error or debug messages to display


Parameters

   $file  
[ Top ]



parse_file [line 294]

void parse_file( $exercisePath, $file, $questionFile)



Parameters

   $exercisePath  
   $file  
   $questionFile  
[ Top ]



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  
[ Top ]



tempdir [line 18]

void tempdir( $dir, [ $prefix = 'tmp'], [ $mode = 0777])

function to create a temporary directory (SAME AS IN MODULE ADMIN)



Parameters

   $dir  
   $prefix  
   $mode  
[ Top ]



Documentation generated on Thu, 12 Jun 2008 13:25:34 -0500 by phpDocumentor 1.4.1