mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 01:58:47 +02:00
💡 N°5906 N°4756 add missing @since pdpdoc tags
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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 = '';
|
||||
}
|
||||
|
||||
@@ -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()])) {
|
||||
|
||||
Reference in New Issue
Block a user