Ignore:
Timestamp:
02/20/12 16:27:19 (13 years ago)
Author:
hendrikvanantwerpen
Message:
  • [Client] Moved pages in subtree of rft/, allowing controllers next to them.
  • [Client] Created questions page, gives overview and allows adding.
  • [Client] Page controllers inherit from _Page, because the previous mechanism w

asn't working.

  • [Client] Added new user registration.
  • [Server] Changed user passwords to passwordHash/passwordSalt combination.
  • [Server] Added simple object marshalling and unmarshalling to preserve types.
  • [Server] Added ResearchToolObjectInterface? with static create() method. Implemented for all model classes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/server/classes/models/Session.php

    r263 r274  
    2424         * @param type $title
    2525         * @param type $creator
    26          * @param type $datetime
     26         * @param type $creationdate
    2727         * @param type $pipeline
    2828         */
    29         public function __construct($uid = null, $title = null, $creator = null, $datetime = null, $pipeline = null)
     29        public function __construct($uid = null, $title = null, $creator = null, $creationdate = null, $pipeline = null)
    3030        {
    3131                if(!isset($uid))
     
    3636                $this->title = $title;
    3737                $this->creator = $creator;
    38                 $this->creationdate = $datetime;
     38                $this->creationdate = $creationdate;
    3939                $this->pipeline = $pipeline;
    4040        }
     
    141141                        }
    142142                }
    143 
    144                 $model->saveAs(Session::$filename, 'rdf');
    145                 return true;
     143               
     144                return $model->saveAs(Session::$filename, 'rdf');
    146145        }
    147146
     
    320319        }
    321320
     321    public static function create($obj) {
     322        return new Session($obj->uid, $obj->title, $obj->creator,
     323                $obj->creationdate, $obj->pipeline);
     324    }
     325
    322326}       
    323327
    324 
    325328?>
Note: See TracChangeset for help on using the changeset viewer.