PHP Class Sulu\Bundle\SearchBundle\Controller\SearchController

ファイルを表示 Open project: sulu/sulu

Public Methods

Method Description
__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.

Private Methods

Method Description
getAllowedIndexes ( ) : array
getIndexTotals ( $hits ) : array Return the category totals for the search results.

Method Details

__construct() public method

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() public method

Return a JSON encoded scalar array of index names.
public indexesAction ( ) : Response
return Symfony\Component\HttpFoundation\Response

searchAction() public method

Perform a search and return a JSON response.
public searchAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response