AOOSModel.php: Documentation + cache modes
commitf4c930d7034ad5349ccf55cd27e63c049f48d4b8
authorSebastian Skejø <sebastian@sebastian.localdomain>
Sat, 11 Jul 2009 16:37:53 +0000 (11 18:37 +0200)
committerSebastian Skejø <sebastian@sebastian.localdomain>
Sat, 11 Jul 2009 16:37:53 +0000 (11 18:37 +0200)
treeedab30dd6530e6df81eb859757f79c0eb06bc5b2
parente179b2532905cddaf73d13a82551b12186f88bae
AOOSModel.php: Documentation + cache modes

Added documentation for all data functions.
Added cache modes, which defines how calls to populate are handled. At the moment two cache modes are implemented:
static and dynamic. Cache modes are set using setCacheMode($cacheMode), which takes an integer parameter, which are
define()'ed. AOOSMODEL_CACHE_STATIC set the static cache mode and AOOSMODEL_CACHE_DYNAMIC sets the dynamic cache mode.
If cache mode is set to static, model is only populated when the model is empty. If cache mode is set to dynamic, model
is emptied and then populated on each call to populate().
AOOSModel.php