Implement OpenSearch feed search with FilterEbooks

This commit is contained in:
Mike Colagrosso 2024-07-08 18:45:25 -06:00 committed by Alex Cabal
parent e06fd910ed
commit 6c8e819316
7 changed files with 15 additions and 71 deletions

View file

@ -429,23 +429,6 @@ class Library{
return $results;
}
/**
* @return array<Ebook>
* @throws Exceptions\AppException
*/
public static function Search(string $query): array{
$ebooks = Library::GetEbooks();
$matches = [];
foreach($ebooks as $ebook){
if($ebook->Contains($query)){
$matches[] = $ebook;
}
}
return $matches;
}
/**
* @return array<Ebook>
*/