Changeset 51 for Dev/trunk/classes


Ignore:
Timestamp:
07/25/11 20:19:23 (14 years ago)
Author:
fpvanagthoven
Message:

Start on survey page. There's something weird in surveycreationtool though. Should fix that.

Location:
Dev/trunk/classes
Files:
1 added
4 edited

Legend:

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

    r45 r51  
    3232                $aStyle = $application['applicationStyle'];
    3333               
    34                 $this->applicationRDFWriter->setApplicationInfo($aTitle, $aDescription, $aStyle)
     34                $this->applicationRDFWriter->setApplicationInfo($aTitle, $aDescription, $aStyle);
    3535               
    3636                $this->applicationRDFWriter->saveApplications();
  • Dev/trunk/classes/SurveyAnswerRDFReader.php

    r45 r51  
    44{       
    55        protected $tempModel;
    6         protected $answerPath
     6        protected $answerPath;
    77       
    88    public function __construct($surveyUID)
     
    1010        parent::__construct($surveyUID);
    1111               
    12                 / Create empty MemModel
     12                // Create empty MemModel
    1313                $factory = new ModelFactory();
    1414                $this->tempModel = $factory->getDefaultModel();
  • Dev/trunk/classes/SurveyAnswerRDFWriter.php

    r45 r51  
    44{
    55        protected $userUID;
    6         protected $answerPath
     6        protected $answerPath;
    77
    88        public function __construct($surveyUID,$userUID)
  • Dev/trunk/classes/master.php

    r10 r51  
    1414    require 'classes/' . $class_name . '.php';
    1515}
     16
     17
     18// Redirects user to $url
     19function redirect($url = null)
     20{
     21        if (is_null($url))
     22                $url = $_SERVER['PHP_SELF'];
     23
     24        header("Location: $url");
     25        exit();
     26}
Note: See TracChangeset for help on using the changeset viewer.