Refactor functions out of Library

This commit is contained in:
Alex Cabal 2024-11-10 22:59:57 -06:00
parent 1449148989
commit b7b63a4be5
24 changed files with 419 additions and 444 deletions

View file

@ -55,6 +55,17 @@ class Collection{
return $result[0] ?? throw new Exceptions\CollectionNotFoundException();;
}
/**
* @return array<Collection>
*/
public static function GetAll(): array{
return Db::Query('
SELECT *
from Collections
order by Name asc
', [], Collection::class);
}
// *******
// METHODS