Ignore:
Timestamp:
12/23/11 16:37:26 (13 years ago)
Author:
jkraaijeveld
Message:

In Session: -datetime has been renamed to creationdate

Connector has been adjusted accordingly

  • Removed answersets

Added SessionInstance?: This class is for unique occurences of a session.

In SessionInstance? is a reference to the currently unimplemented ResultSet?. This class will contain all answersets and gameresults given the SessionInstance?.

File:
1 edited

Legend:

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

    r186 r195  
    1010        public $title;
    1111        public $creator;
    12         public $datetime;
     12        public $creationdate;
    1313        public $pipeline;
    14         public $answersets;
    1514
    1615       
     
    2322         * @param type $pipeline
    2423         */
    25         public function __construct($uid = null, $title = null, $creator = null, $datetime = null, $pipeline = null, $answersets = null)
     24        public function __construct($uid = null, $title = null, $creator = null, $datetime = null, $pipeline = null)
    2625        {
    2726                if(!isset($uid))
     
    3231                $this->title = $title;
    3332                $this->creator = $creator;
    34                 $this->datetime = $datetime;
     33                $this->creationdate = $datetime;
    3534                $this->pipeline = $pipeline;
    36                 $this->answersets = $answersets;
    3735        }
    3836
     
    6765                        $this->pipeline = $newPipeline;
    6866                }
    69                 if(!empty($this->answersets) && is_string($this->answersets[0]))
    70                 {
    71                         $newAnswerSets = array();
    72                         foreach($this->answersets as $element)
    73                         {
    74                                 $result = $dbi->get("answerset", array("uid" => $element));
    75                                 if(!isset($result[0]))
    76                                         return false;
    77                                 $newAnswerSets[] = $result[0];
    78                         }
    79                         $this->answersets = $newAnswerSets;
    80                 }
    8167                return true;
    8268        }
     
    9076         * are written to the file whilst the others get lost.
    9177         */
     78        //DO NOT USE - BROKEN AS OF 23/12/2011
    9279        public function toSPSS($location)
    9380        {
Note: See TracChangeset for help on using the changeset viewer.