Finalized the data model

SVN:trunk[569]
This commit is contained in:
Romain Quetiez
2010-07-06 00:08:03 +00:00
parent d668bdd6fe
commit d1b7c880b1
15 changed files with 766 additions and 1049 deletions

View File

@@ -802,7 +802,7 @@ abstract class DBObject
}
// To be optionaly overloaded
public function OnInsert()
protected function OnInsert()
{
}
@@ -888,6 +888,11 @@ abstract class DBObject
return $this->DBInsert();
}
// To be optionaly overloaded
protected function OnUpdate()
{
}
// Update a record
public function DBUpdate()
{
@@ -897,6 +902,7 @@ abstract class DBObject
}
$this->DoComputeValues();
$this->OnUpdate();
$aChanges = $this->ListChanges();
if (count($aChanges) == 0)