mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-29 13:10:06 +02:00
Allow to filter by IPN
This commit is contained in:
parent
b1d359f538
commit
6d966ce516
3 changed files with 12 additions and 0 deletions
|
@ -47,6 +47,7 @@ class PartFilter implements FilterInterface
|
|||
use CompoundFilterTrait;
|
||||
|
||||
protected IntConstraint $dbId;
|
||||
protected TextConstraint $ipn;
|
||||
protected TextConstraint $name;
|
||||
protected TextConstraint $description;
|
||||
protected TextConstraint $comment;
|
||||
|
@ -95,6 +96,7 @@ class PartFilter implements FilterInterface
|
|||
$this->measurementUnit = new EntityConstraint($nodesListBuilder, MeasurementUnit::class, 'part.partUnit');
|
||||
$this->mass = new NumberConstraint('part.mass');
|
||||
$this->dbId = new IntConstraint('part.id');
|
||||
$this->ipn = new TextConstraint('part.ipn');
|
||||
$this->addedDate = new DateTimeConstraint('part.addedDate');
|
||||
$this->lastModified = new DateTimeConstraint('part.lastModified');
|
||||
|
||||
|
@ -235,6 +237,11 @@ class PartFilter implements FilterInterface
|
|||
return $this->dbId;
|
||||
}
|
||||
|
||||
public function getIpn(): TextConstraint
|
||||
{
|
||||
return $this->ipn;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TextConstraint
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue