Ignore:
Timestamp:
12/16/11 11:19:54 (13 years ago)
Author:
jkraaijeveld
Message:

Implemented lazy evaluation.

  • Initially, references to other database objects are now given as an ID rather than an object.
  • Every model class now has an evaluate() function, which gets all the objects that object has references to. Returns true if it got all the values correctly, false if there are invalid references.
  • Every connector now first evaluates an object before storing, to make sure only objects with valid references get stored.
File:
1 edited

Legend:

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

    r161 r186  
    2626      $this->password = $password;
    2727   }
     28
     29   /*
     30        * function evaluate()
     31        * evaluates all the references.
     32        */
     33   public function evaluate()
     34   {
     35                //Do nothing since Respondent does not contain any references.
     36   }
    2837   
    2938}
Note: See TracChangeset for help on using the changeset viewer.