PHP Класс Sulu\Bundle\SearchBundle\Controller\SearchController

Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Massive\Bundle\SearchBundle\Search\SearchManagerInterface $searchManager, Massive\Bundle\SearchBundle\Search\Metadata\ProviderInterface $metadataProvider, Sulu\Component\Security\Authorization\SecurityCheckerInterface $securityChecker, FOS\RestBundle\View\ViewHandlerInterface $viewHandler, Sulu\Component\Rest\ListBuilder\ListRestHelperInterface $listRestHelper, Sulu\Bundle\SearchBundle\Search\Configuration\IndexConfigurationProviderInterface $indexConfigurationProvider )
indexesAction ( ) : Response Return a JSON encoded scalar array of index names.
searchAction ( Request $request ) : Response Perform a search and return a JSON response.

Приватные методы

Метод Описание
getAllowedIndexes ( ) : array
getIndexTotals ( $hits ) : array Return the category totals for the search results.

Описание методов

__construct() публичный Метод

public __construct ( Massive\Bundle\SearchBundle\Search\SearchManagerInterface $searchManager, Massive\Bundle\SearchBundle\Search\Metadata\ProviderInterface $metadataProvider, Sulu\Component\Security\Authorization\SecurityCheckerInterface $securityChecker, FOS\RestBundle\View\ViewHandlerInterface $viewHandler, Sulu\Component\Rest\ListBuilder\ListRestHelperInterface $listRestHelper, Sulu\Bundle\SearchBundle\Search\Configuration\IndexConfigurationProviderInterface $indexConfigurationProvider )
$searchManager Massive\Bundle\SearchBundle\Search\SearchManagerInterface
$metadataProvider Massive\Bundle\SearchBundle\Search\Metadata\ProviderInterface
$securityChecker Sulu\Component\Security\Authorization\SecurityCheckerInterface
$viewHandler FOS\RestBundle\View\ViewHandlerInterface
$listRestHelper Sulu\Component\Rest\ListBuilder\ListRestHelperInterface
$indexConfigurationProvider Sulu\Bundle\SearchBundle\Search\Configuration\IndexConfigurationProviderInterface

indexesAction() публичный Метод

Return a JSON encoded scalar array of index names.
public indexesAction ( ) : Response
Результат Symfony\Component\HttpFoundation\Response

searchAction() публичный Метод

Perform a search and return a JSON response.
public searchAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\Response