Procedural File: admin.php
Source Location: /main/exercice/admin.php
Page Details:
Exercise administration This script allows to manage (create, modify) an exercise and its questions
Following scripts are includes for a best code understanding : - exercise.class.php : for the creation of an Exercise object
- question.class.php : for the creation of a Question object
- answer.class.php : for the creation of an Answer object
- exercise.lib.php : functions used in the exercise tool
- exercise_admin.inc.php : management of the exercise
- question_admin.inc.php : management of a question (statement & answers)
- statement_admin.inc.php : management of a statement
- answer_admin.inc.php : management of answers
- question_list_admin.inc.php : management of the question list
Main variables used in this script :- $is_allowedToEdit : set to 1 if the user is allowed to manage the exercise
- $objExercise : exercise object
- $objQuestion : question object
- $objAnswer : answer object
- $aType : array with answer types
- $exerciseId : the exercise ID
- $picturePath : the path of question pictures
- $newQuestion : ask to create a new question
- $modifyQuestion : ID of the question to modify
- $editQuestion : ID of the question to edit
- $submitQuestion : ask to save question modifications
- $cancelQuestion : ask to cancel question modifications
- $deleteQuestion : ID of the question to delete
- $moveUp : ID of the question to move up
- $moveDown : ID of the question to move down
- $modifyExercise : ID of the exercise to modify
- $submitExercise : ask to save exercise modifications
- $cancelExercise : ask to cancel exercise modifications
- $modifyAnswers : ID of the question which we want to modify answers for
- $cancelAnswers : ask to cancel answer modifications
- $buttonBack : ask to go back to the previous page in answers of type "Fill in blanks"
Tags:
Includes:
ALLOWED_TO_INCLUDE [line 87]
|