| 1 | <?php |
| 2 | |
| 3 | namespace wcf\data; |
| 4 | |
| 5 | /** |
| 6 | * Every database object action whose objects can be searched via AJAX has to |
| 7 | * implement this interface. |
| 8 | * |
| 9 | * @author Matthias Schmidt |
| 10 | * @copyright 2001-2019 WoltLab GmbH |
| 11 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> |
| 12 | */ |
| 13 | interface ISearchAction |
| 14 | { |
| 15 | /** |
| 16 | * Returns a list with data of objects that match the given search criteria. |
| 17 | * |
| 18 | * @return array<array> |
| 19 | */ |
| 20 | public function getSearchResultList(); |
| 21 | |
| 22 | /** |
| 23 | * Validates the "getSearchResultList" action. |
| 24 | */ |
| 25 | public function validateGetSearchResultList(); |
| 26 | } |