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

    r158 r186  
    2828        $this->title = $title;
    2929        $this->description = $description;
    30         $this->style = $style;
    31     }
     30                $this->style = $style;
     31        }
     32       
     33        public function evaluate()
     34        {
     35                //Do nothing, there are no references in application.
     36        }
    3237
    3338}
Note: See TracChangeset for help on using the changeset viewer.