Ignore:
Timestamp:
08/31/11 15:35:10 (14 years ago)
Author:
fpvanagthoven
Message:

Done: Default question description -> do not display in SurveyTool?. Added bug to TODO list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/classes/Survey.php

    r75 r95  
    11<?php
     2
    23/*
    34 * To change this template, choose Tools | Templates
     
    1617    public $description;
    1718    public $questions;
    18        
    19         public $results;
     19    public $results;
     20   
     21    const DEFAULT_DESCRIPTION = "Write a helpful description for this survey here.";
    2022
    2123    public function __construct($id, $title, $description = null) {
     
    2426        $this->description = $description;
    2527        $this->questions = array();
    26                
    27                 $this->results = null;
     28
     29        $this->results = null;
    2830    }
    29        
    30         public function addQuestion($question)
    31         {
    32                 array_push($this->questions, $question);
    33         }
    34        
    35         public function setResults($surveyResults)
    36         {
    37                 $this->results = $surveyResults;
    38         }
     31
     32    public function addQuestion($question) {
     33        array_push($this->questions, $question);
     34    }
     35
     36    public function setResults($surveyResults) {
     37        $this->results = $surveyResults;
     38    }
    3939
    4040    public static function getSurvey($info) {
     
    7070        return $survey;
    7171    }
    72        
    73         /**
    74          * TODO: Should return Results-object from reading RDF-database
    75          * @param type $surveyID
    76          */
    77         public static function getResults($surveyID)
    78         {
    79                
    80         }
     72
     73    /**
     74     * TODO: Should return Results-object from reading RDF-database
     75     * @param type $surveyID
     76     */
     77    public static function getResults($surveyID) {
     78       
     79    }
    8180
    8281}
     82
    8383?>
Note: See TracChangeset for help on using the changeset viewer.