blob: 59f288470288f182c8d20f47cdfe5ac721a632f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
namespace FilesSearch;
/**
* Simple class to start a search.
*
* @license GPL2 or any later version
*
* @since Stud.IP 4.1
*/
class Search
{
/**
* Search for result using a query object.
*
* @param Query $query the query object to search for
*
* @return Result the result of the search
*/
public static function query(Query $query)
{
return ($query->getQuery() && !$query->hasError()) ? new Result($query) : null;
}
}
|