mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
New helper function IsModified
SVN:trunk[101]
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user