Changeset 195 for Dev/trunk/classes/Session.php
- Timestamp:
- 12/23/11 16:37:26 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/Session.php
r186 r195 10 10 public $title; 11 11 public $creator; 12 public $ datetime;12 public $creationdate; 13 13 public $pipeline; 14 public $answersets;15 14 16 15 … … 23 22 * @param type $pipeline 24 23 */ 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) 26 25 { 27 26 if(!isset($uid)) … … 32 31 $this->title = $title; 33 32 $this->creator = $creator; 34 $this-> datetime = $datetime;33 $this->creationdate = $datetime; 35 34 $this->pipeline = $pipeline; 36 $this->answersets = $answersets;37 35 } 38 36 … … 67 65 $this->pipeline = $newPipeline; 68 66 } 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 }81 67 return true; 82 68 } … … 90 76 * are written to the file whilst the others get lost. 91 77 */ 78 //DO NOT USE - BROKEN AS OF 23/12/2011 92 79 public function toSPSS($location) 93 80 {
Note: See TracChangeset
for help on using the changeset viewer.