N°4756 - Ease extensibility for CRUD operations : Reduce events after review

This commit is contained in:
Eric Espie
2023-01-04 14:18:01 +01:00
parent cd17eb484a
commit a693c343e8
3 changed files with 1 additions and 74 deletions

View File

@@ -2373,7 +2373,6 @@ abstract class DBObject implements iDisplay
else
{
$this->m_bCheckStatus = false;
$this->EventCheckToWriteFailed($this->m_aCheckIssues);
}
}
return array($this->m_bCheckStatus, $this->m_aCheckIssues, $this->m_bSecurityIssue);
@@ -3756,8 +3755,7 @@ abstract class DBObject implements iDisplay
if ($oDeletionPlan->FoundStopper())
{
$aIssues = $oDeletionPlan->GetIssues();
$this->EventCheckToDeleteFailed($aIssues);
throw new DeleteException('Found issue(s)', array('target_class' => get_class($this), 'target_id' => $this->GetKey(), 'issues' => implode(', ', $aIssues)));
throw new DeleteException('Found issue(s)', array('target_class' => get_class($this), 'target_id' => $this->GetKey(), 'issues' => implode(', ', $aIssues)));
}
@@ -5899,14 +5897,6 @@ abstract class DBObject implements iDisplay
{
}
/**
* @return void
* @since 3.1.0
*/
protected function EventCheckToWriteFailed(array $aIssues): void
{
}
/**
* @return void
* @since 3.1.0
@@ -5939,14 +5929,6 @@ abstract class DBObject implements iDisplay
{
}
/**
* @return void
* @since 3.1.0
*/
protected function EventCheckToDeleteFailed(array $aIssues): void
{
}
/**
* @return void
* @since 3.1.0