diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index 355409509..92e585897 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -6045,6 +6045,8 @@ JS * Check if the event EVENT_DB_LINKS_CHANGED is blocked or not (for bulk operations) * * @return bool + * + * @since 3.1.0 N°5906 */ final public static function IsEventDBLinksChangedBlocked(): bool { @@ -6055,6 +6057,8 @@ JS * Block/unblock the event EVENT_DB_LINKS_CHANGED (the registration of objects on links modifications continues to work) * * @param bool $bBlockEventDBLinksChanged + * + * @since 3.1.0 N°5906 */ final public static function SetEventDBLinksChangedBlocked(bool $bBlockEventDBLinksChanged): void { diff --git a/core/dbobject.class.php b/core/dbobject.class.php index 1ff6290d7..c0af07e1a 100644 --- a/core/dbobject.class.php +++ b/core/dbobject.class.php @@ -5809,12 +5809,20 @@ abstract class DBObject implements iDisplay return $oExpression->Evaluate($aArgs); } - final public function SetReadOnly($sMessage) { + /** + * @since 3.1.0 N°4756 + */ + final public function SetReadOnly($sMessage) + { $this->m_bIsReadOnly = true; $this->m_sReadOnlyMessage = $sMessage; } - final public function SetReadWrite() { + /** + * @since 3.1.0 N°4756 + */ + final public function SetReadWrite() + { $this->m_bIsReadOnly = false; $this->m_sReadOnlyMessage = ''; } diff --git a/core/metamodel.class.php b/core/metamodel.class.php index a7bb83b43..58eeae3c7 100644 --- a/core/metamodel.class.php +++ b/core/metamodel.class.php @@ -7631,6 +7631,8 @@ abstract class MetaModel * @param \DBObject $oObject * * @return bool true if reentry possible + * + * @since 3.1.0 N°4756 */ public static function StartReentranceProtection(DBObject $oObject) { @@ -7638,9 +7640,17 @@ abstract class MetaModel return false; } self::$m_aReentranceProtection[get_class($oObject)][$oObject->GetKey()] = $oObject; + return true; } + /** + * @param \DBObject $oObject + * + * @return void + * + * @since 3.1.0 N°4756 + */ public static function StopReentranceProtection(DBObject $oObject) { if (isset(self::$m_aReentranceProtection[get_class($oObject)][$oObject->GetKey()])) {