Minor - avoid a few warnings by converting var to public in classes definition

skala
Yannick Warnier 16 years ago
parent 774548e743
commit 53990baee4
  1. 40
      main/exercice/answer.class.php
  2. 32
      main/exercice/exercise.class.php
  3. 18
      main/exercice/question.class.php

@ -13,31 +13,31 @@ if(!class_exists('Answer')):
class Answer
{
var $questionId;
public $questionId;
// these are arrays
var $answer;
var $correct;
var $comment;
var $weighting;
var $position;
var $hotspot_coordinates;
var $hotspot_type;
var $destination;
public $answer;
public $correct;
public $comment;
public $weighting;
public $position;
public $hotspot_coordinates;
public $hotspot_type;
public $destination;
// these arrays are used to save temporarily new answers
// then they are moved into the arrays above or deleted in the event of cancellation
var $new_answer;
var $new_correct;
var $new_comment;
var $new_weighting;
var $new_position;
var $new_hotspot_coordinates;
var $new_hotspot_type;
var $nbrAnswers;
var $new_nbrAnswers;
var $new_destination; // id of the next question if feedback option is set to Directfeedback
public $new_answer;
public $new_correct;
public $new_comment;
public $new_weighting;
public $new_position;
public $new_hotspot_coordinates;
public $new_hotspot_type;
public $nbrAnswers;
public $new_nbrAnswers;
public $new_destination; // id of the next question if feedback option is set to Directfeedback
/**
* constructor of the class

@ -18,22 +18,22 @@ if(!class_exists('Exercise')):
class Exercise
{
var $id;
var $exercise;
var $description;
var $sound;
var $type;
var $random;
var $random_answers;
var $active;
var $timeLimit;
var $attempts;
var $feedbacktype;
var $end_time;
var $start_time;
var $questionList; // array with the list of this exercise's questions
var $results_disabled;
var $expired_time;
public $id;
public $exercise;
public $description;
public $sound;
public $type;
public $random;
public $random_answers;
public $active;
public $timeLimit;
public $attempts;
public $feedbacktype;
public $end_time;
public $start_time;
public $questionList; // array with the list of this exercise's questions
public $results_disabled;
public $expired_time;
/**
* constructor of the class
*

@ -32,15 +32,15 @@ define('MULTIPLE_ANSWER_COMBINATION', 9);
*/
abstract class Question
{
var $id;
var $question;
var $description;
var $weighting;
var $position;
var $type;
var $level;
var $picture;
var $exerciseList; // array with the list of exercises which this question is in
public $id;
public $question;
public $description;
public $weighting;
public $position;
public $type;
public $level;
public $picture;
public $exerciseList; // array with the list of exercises which this question is in
private $isContent;
static $typePicture = 'new_question.png';

Loading…
Cancel
Save