New helper function IsModified

SVN:trunk[101]
This commit is contained in:
Denis Flaven
2009-08-25 13:52:13 +00:00
parent bed32711d6
commit 802e06888a

View File

@@ -533,6 +533,13 @@ abstract class DBObject
return $this->ListChangedValues($this->m_aCurrValues);
}
// Tells whether or not an object was modified
public function IsModified()
{
$aChanges = $this->ListChanges();
return (count($aChanges) != 0);
}
// used both by insert/update
private function DBWriteLinks()
{