N°2293 Object update hooks now have access to object changes

* new \cmdbAbstractObject::$m_aChanges for \iApplicationObjectExtension::OnDBUpdate calls
* calling ListChanges() from within \DBObject::AfterUpdate will now give the right informations
* update PHPDoc in iApplicationObjectExtension
This commit is contained in:
Pierre Goiffon
2019-08-23 10:12:36 +02:00
parent 58402cdda8
commit c97fd63e6d
3 changed files with 31 additions and 20 deletions

View File

@@ -3148,12 +3148,12 @@ abstract class DBObject implements iDisplay
$this->DBWriteLinks();
$this->WriteExternalAttributes();
$this->AfterUpdate();
$this->m_bDirty = false;
$this->m_aTouchedAtt = array();
$this->m_aModifiedAtt = array();
$this->AfterUpdate();
// Reload to get the external attributes
if ($bHasANewExternalKeyValue)
{
@@ -3969,7 +3969,7 @@ abstract class DBObject implements iDisplay
}
/**
* this method is called after the object is updated into DB.
* This method is called after the object is updated into DB. You can get changes by calling {@link ListChanges}.
*
* @overwritable-hook You can extend this method in order to provide your own logic.
*/