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/ResearchToolObject.php

    r256 r274  
    1111
    1212
    13 abstract class ResearchToolObject {
     13abstract class ResearchToolObject implements ResearchToolObjectInterface {
    1414
    15         public $uid;
     15        public $uid = null;
    1616
     17    public function getUid() {
     18        return $this->uid;
     19    }
     20   
    1721        public function evaluate()
    1822        {
     
    7983}
    8084
     85interface ResearchToolObjectInterface {
     86    function getUid();
     87    static function get($arguments);
     88    static function create($obj);
     89    function evaluate();
     90    function save();
     91}
     92
    8193?>
Note: See TracChangeset for help on using the changeset viewer.