AOOSModel: Major refactor
commitf5e0b996746756864cf56ca7b3640a56c7d110c2
authorSebastian Skejø <sebastian@sebastian.localdomain>
Sun, 14 Jun 2009 09:39:29 +0000 (14 11:39 +0200)
committerSebastian Skejø <sebastian@sebastian.localdomain>
Sun, 14 Jun 2009 09:39:29 +0000 (14 11:39 +0200)
tree1d69c20365f2525d698a27e290dc15173982e9ed
parentb26173c27b3b20dd8f981438a3e110afce555a5f
AOOSModel: Major refactor

AOOSModel has been completely refactored. The meaning of types and properties have been changed: a type is strictly a
type, not something like AOOSMODEL_TYPE_DATETIME, and properties are only properties if they actually change the value
of a column, not something like AOOSMODEL_PROP_GUI_PRIVATE.
To provide same functionality flags and constraints have been added. Flags are what used to be
AOOSMODEL_PROP_DATA_UNIQUE, AOOSMODEL_PROP_FROM_DATABASE and so on.
Constraints are a new concept fairly similar to properties with the difference that constraints take arguments. This
means that it is possible to have a length constraint which automatically makes sure that the value of a column is no
longer than what is specified.

Handling of properties, types, flags and constraints have been moved to AOOSModelRow, which means that the
implementation has been simplified a lot.

AOOSMysqlInterface had some bugs and was changed to fit the refactored AOOSModel.
AOOSModel.php
lib/AOOSMysqlInterface.php