Ignore:
Timestamp:
08/08/11 15:12:46 (14 years ago)
Author:
fpvanagthoven
Message:

Application should now just be RDF-saved. Beginning on DashboardTool?.php.

File:
1 edited

Legend:

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

    r57 r75  
    1616    public $description;
    1717    public $questions;
     18       
     19        public $results;
    1820
    1921    public function __construct($id, $title, $description = null) {
     
    2224        $this->description = $description;
    2325        $this->questions = array();
     26               
     27                $this->results = null;
    2428    }
     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        }
    2539
    2640    public static function getSurvey($info) {
     
    5670        return $survey;
    5771    }
     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        }
    5881
    5982}
Note: See TracChangeset for help on using the changeset viewer.