Added UserSelectType and allow to set owner of a storage location

This commit is contained in:
Jan Böhmer 2023-04-02 21:50:22 +02:00
parent f101e1b184
commit 5f5541ca12
8 changed files with 142 additions and 36 deletions

View file

@ -59,4 +59,14 @@ class NamedDBElementRepository extends DBElementRepository
return $result;
}
/**
* Returns the list of all nodes to use in a select box.
* @return AbstractNamedDBElement[]
*/
public function toNodesList(): array
{
//All nodes are sorted by name
return $this->findBy([], ['name' => 'ASC']);
}
}