mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°2293 - API OnDBUpdate and AfterUpdate need modified fields and previous data
- add a getter for the protected property DBObject::$m_aChanges
This commit is contained in:
@@ -421,7 +421,7 @@ interface iApplicationObjectExtension
|
||||
* Invoked when an object is updated into the database. The method is called right <b>after</b> the object has been written to the
|
||||
* database.
|
||||
*
|
||||
* Changes made to the object can be get using {@link $oObject::$m_aChanges}. Do not call {@link \DBObject::ListChanges} for this purpose !
|
||||
* Changes made to the object can be get using {@link $oObject::ListChangesUpdated()}. Do not call {@link \DBObject::ListChanges} for this purpose because it will be empty as the object has already be written to DB!
|
||||
*
|
||||
* @param \cmdbAbstractObject $oObject The target object
|
||||
* @param CMDBChange|null $oChange A change context. Since 2.0 it is fine to ignore it, as the framework does maintain this information
|
||||
@@ -429,7 +429,7 @@ interface iApplicationObjectExtension
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 2.7.0 N°2293 can access object changes by calling {@link $oObject::$m_aChanges}
|
||||
* @since 2.7.0 N°2293 can access object changes by calling {@link $oObject::ListChangesUpdated()}
|
||||
*/
|
||||
public function OnDBUpdate($oObject, $oChange = null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user