💡 N°5906 N°4756 add missing @since pdpdoc tags

This commit is contained in:
Pierre Goiffon
2023-03-30 15:28:33 +02:00
parent c975affecf
commit ca7a920498
3 changed files with 24 additions and 2 deletions

View File

@@ -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
{

View File

@@ -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 = '';
}

View File

@@ -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()])) {