mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-23 18:28:49 +02:00
Log when elements are created, edited or removed.
This commit is contained in:
parent
9f5a4ddf95
commit
eb071b1780
7 changed files with 213 additions and 0 deletions
|
@ -24,6 +24,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Entity\LogSystem;
|
||||
|
||||
use App\Entity\Base\AbstractDBElement;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
|
@ -33,6 +34,14 @@ class ElementEditedLogEntry extends AbstractLogEntry
|
|||
{
|
||||
protected $typeString = 'element_edited';
|
||||
|
||||
public function __construct(AbstractDBElement $changed_element)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->level = self::LEVEL_INFO;
|
||||
|
||||
$this->setTargetElement($changed_element);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the message associated with this edit change.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue