mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 02:46:46 -04:00
Refactor functions out of Library
This commit is contained in:
parent
1449148989
commit
b7b63a4be5
24 changed files with 419 additions and 444 deletions
|
@ -93,4 +93,18 @@ class EbookTag extends Tag{
|
|||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<EbookTag>
|
||||
*/
|
||||
public static function GetAll(): array{
|
||||
$tags = Db::Query('
|
||||
SELECT *
|
||||
from Tags t
|
||||
where Type = ?
|
||||
order by Name
|
||||
', [Enums\TagType::Ebook], EbookTag::class);
|
||||
|
||||
return $tags;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue