PHP Class Flarum\Api\Controller\ListDiscussionsController

Inheritance: extends AbstractCollectionController
显示文件 Open project: flarum/core

Public Properties

Property Type Description
$include
$optionalInclude
$serializer
$sortFields

Protected Properties

Property Type Description
$searcher Flarum\Core\Search\Discussion\DiscussionSearcher
$url Flarum\Api\UrlGenerator

Public Methods

Method Description
__construct ( DiscussionSearcher $searcher, UrlGenerator $url )

Protected Methods

Method Description
data ( Psr\Http\Message\ServerRequestInterface $request, Document $document )

Method Details

__construct() public method

public __construct ( DiscussionSearcher $searcher, UrlGenerator $url )
$searcher Flarum\Core\Search\Discussion\DiscussionSearcher
$url Flarum\Api\UrlGenerator

data() protected method

protected data ( Psr\Http\Message\ServerRequestInterface $request, Document $document )
$request Psr\Http\Message\ServerRequestInterface
$document Tobscure\JsonApi\Document

Property Details

$include public_oe property

public $include

$optionalInclude public_oe property

public $optionalInclude

$searcher protected_oe property

protected DiscussionSearcher,Flarum\Core\Search\Discussion $searcher
return Flarum\Core\Search\Discussion\DiscussionSearcher

$serializer public_oe property

public $serializer

$sortFields public_oe property

public $sortFields

$url protected_oe property

protected UrlGenerator,Flarum\Api $url
return Flarum\Api\UrlGenerator