Ignore:
Timestamp:
11/18/11 11:07:07 (13 years ago)
Author:
jkraaijeveld
Message:

Refactored queries / cleaned up some code.

File:
1 edited

Legend:

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

    r157 r158  
    4747
    4848        /**
    49          * Get the Sessions corresponding to the arguments
    50          * @ param type $arguments
    51          * Arguments can be one or more of the following:
    52          * uid, title, datetime, applications, surveys, answersets
    53          * Where applications, surveys and answersets are arrays containing ids
     49         * function get()
     50         * @param type $arguments : An array containing one or more of the following elements:
     51         * 'uid', 'title', 'datetime', 'applications', 'surveys', 'answersets'
    5452         */
    5553        public function get($arguments)
     
    119117        }
    120118        /**
    121          * function getPipeline
    122          * Get the application and survey objects of the Session in order
     119         * function getPipeline()
     120         * param type $uid : The Session uid for which the pipeline should be retrieved.
    123121         */
    124122        private function getPipeline($uid)
     
    145143
    146144        /**
    147          * function getAnswerSets
    148          * Get the answersets belonging to the given session
     145         * function getAnswerSets()
     146         * @param type $uid : The Session uid for which the answerSets should be retrieved.
    149147         */
    150148        private function getAnswerSets($uid)
     
    163161
    164162        /**
    165          * Save the given Session object in the file.
    166          * @param type $rToolObjects
     163         * function set()
     164         * @param type $rToolObjects : The ResearchToolObject to be saved.
    167165         */
    168166        public function set($rToolObject)
     
    188186                $sessionTimestamp = new Literal($rToolObject->datetime->getTimestamp());
    189187        //      $sessionTimestamp = new Literal($rToolObject->datetime);    // Edit of above function, allows for creation of session, but still results in errors...
    190                 $predicateTimestamp = new Resource(DATETIME);
     188        $predicateTimestamp = new Resource(DATETIME);
    191189                $this->model->add(new Statement($resourceSession, $predicateTimestamp, $sessionTimestamp));
    192190
Note: See TracChangeset for help on using the changeset viewer.