mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 02:38:50 +02:00
[Eventlog] Show extra data in log table.
This commit is contained in:
parent
f7d0524f57
commit
8b1eccc48d
12 changed files with 351 additions and 2 deletions
|
@ -31,4 +31,22 @@ use Doctrine\ORM\Mapping as ORM;
|
|||
class ElementCreatedLogEntry extends AbstractLogEntry
|
||||
{
|
||||
protected $typeString = "element_created";
|
||||
|
||||
/**
|
||||
* Gets the instock when the part was created
|
||||
* @return int|null
|
||||
*/
|
||||
public function getCreationInstockValue(): ?int
|
||||
{
|
||||
return $this->extra['i'] ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a creation instock value was saved with this entry.
|
||||
* @return bool
|
||||
*/
|
||||
public function hasCreationInstockValue(): bool
|
||||
{
|
||||
return $this->getCreationInstockValue() !== null;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue