PHP Class Flarum\Api\Controller\ShowDiscussionController

Inheritance: extends AbstractResourceController
Afficher le fichier Open project: flarum/core

Méthodes publiques

Свойство Type Description
$include
$optionalInclude
$serializer

Protected Properties

Свойство Type Description
$discussions Flarum\Core\Repository\DiscussionRepository
$posts Flarum\Core\Repository\PostRepository

Méthodes publiques

Méthode Description
__construct ( DiscussionRepository $discussions, PostRepository $posts )

Méthodes protégées

Méthode Description
data ( Psr\Http\Message\ServerRequestInterface $request, Document $document )

Private Methods

Méthode Description
getPostRelationships ( array $include ) : array
getPostsOffset ( Psr\Http\Message\ServerRequestInterface $request, Discussion $discussion, integer $limit ) : integer
includePosts ( Discussion $discussion, Psr\Http\Message\ServerRequestInterface $request, array $include )
loadPostIds ( Discussion $discussion, User $actor ) : array
loadPosts ( Discussion $discussion, User $actor, integer $offset, integer $limit, array $include ) : mixed

Method Details

__construct() public méthode

public __construct ( DiscussionRepository $discussions, PostRepository $posts )
$discussions Flarum\Core\Repository\DiscussionRepository
$posts Flarum\Core\Repository\PostRepository

data() protected méthode

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

Property Details

$discussions protected_oe property

protected DiscussionRepository,Flarum\Core\Repository $discussions
Résultat Flarum\Core\Repository\DiscussionRepository

$include public_oe property

public $include

$optionalInclude public_oe property

public $optionalInclude

$posts protected_oe property

protected PostRepository,Flarum\Core\Repository $posts
Résultat Flarum\Core\Repository\PostRepository

$serializer public_oe property

public $serializer