N°2293 update PHPDoc on callbacks

This commit is contained in:
Pierre Goiffon
2019-10-30 16:26:18 +01:00
parent 4834c326aa
commit 6793fb2a35
2 changed files with 6 additions and 4 deletions

View File

@@ -419,7 +419,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 \cmdbAbstractObject::$m_aChanges}
* Changes made to the object can be get using {@link $oObject::$m_aChanges}. Do not call {@link \DBObject::ListChanges} for this purpose !
*
* @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
@@ -427,7 +427,7 @@ interface iApplicationObjectExtension
*
* @return void
*
* @since 2.7.0 N°2293 can access object changes by calling {@link \cmdbAbstractObject::$m_aChanges}
* @since 2.7.0 N°2293 can access object changes by calling {@link $oObject::$m_aChanges}
*/
public function OnDBUpdate($oObject, $oChange = null);

View File

@@ -4108,11 +4108,13 @@ abstract class DBObject implements iDisplay
}
/**
* This method is called after the object is updated into DB. You can get changes by calling {@link ListChanges}.
* This method is called after the object is updated into DB. You can get changes using @link m_aChanges}.
*
* Warning : do not use {@link ListChanges} as it will return an empty array.
*
* @overwritable-hook You can extend this method in order to provide your own logic.
*
* @since 2.7.0 N°2293 can access object changes by calling {@link ListChanges}
* @since 2.7.0 N°2293 can access object changes using {@link m_aChanges}
*/
protected function AfterUpdate()
{