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

    r149 r186  
    3939        $this->category =  $category;
    4040        $this->answers = $answers;
    41     }
     41        }
     42
     43        /**
     44         * function evaluate()
     45         * evaluates all the references of this object.
     46         */
     47        public function evaluate()
     48        {
     49                //Do nothing since Question does not contain any references
     50        }
    4251}
    4352
Note: See TracChangeset for help on using the changeset viewer.