public function get_discussion_summaries_exporter(
        stdClass $user,
        forum_entity $forum,
        array $discussions,
        array $groupsbyid = [],
        array $groupsbyauthorid = [],
        array $discussionreplycount = [],
        array $discussionunreadcount = [],
        array $latestpostids = [],
        array $postauthorcontextids = [],
        array $favourites = []
    ) : discussion_summaries_exporter {
        return new discussion_summaries_exporter(
            $discussions,
            $groupsbyid,
            $groupsbyauthorid,
            $discussionreplycount,
            $discussionunreadcount,
            $latestpostids,
            $postauthorcontextids,
            [
                'legacydatamapperfactory' => $this->legacydatamapperfactory,
                'context' => $forum->get_context(),
                'forum' => $forum,
                'capabilitymanager' => $this->managerfactory->get_capability_manager($forum),
                'urlfactory' => $this->urlfactory,
                'user' => $user,
                'favouriteids' => $favourites
            ]
        );
    }
public function get_discussion_summaries_exporter(
        stdClass $user,
        forum_entity $forum,
        array $discussions,
        array $groupsbyid = [],
        array $groupsbyauthorid = [],
        array $discussionreplycount = [],
        array $discussionunreadcount = [],
        array $latestpostids = [],
        array $postauthorcontextids = [],
        array $favourites = []
    ) : discussion_summaries_exporter {
        return new discussion_summaries_exporter(
            $discussions,
            $groupsbyid,
            $groupsbyauthorid,
            $discussionreplycount,
            $discussionunreadcount,
            $latestpostids,
            $postauthorcontextids,
            [
                'legacydatamapperfactory' => $this->legacydatamapperfactory,
                'context' => $forum->get_context(),
                'forum' => $forum,
                'capabilitymanager' => $this->managerfactory->get_capability_manager($forum),
                'urlfactory' => $this->urlfactory,
                'user' => $user,
                'favouriteids' => $favourites
            ]
        );
    }
public function get_discussion_summaries_exporter ( stdClass $ user , forum_entity $ forum , array $ discussions , array $ groupsbyid = [ ] , array $ groupsbyauthorid = [ ] , array $ discussionreplycount = [ ] , array $ discussionunreadcount = [ ] , array $ latestpostids = [ ] , array $ postauthorcontextids = [ ] , array $ favourites = [ ] ) : discussion_summaries_exporter { return new discussion_summaries_exporter ( $ discussions , $ groupsbyid , $ groupsbyauthorid , $ discussionreplycount , $ discussionunreadcount , $ latestpostids , $ postauthorcontextids , [ 'legacydatamapperfactory' => $ this -> legacydatamapperfactory , 'context' => $ forum -> get_context ( ) , 'forum' => $ forum , 'capabilitymanager' => $ this -> managerfactory -> get_capability_manager ( $ forum ) , 'urlfactory' => $ this -> urlfactory , 'user' => $ user , 'favouriteids' => $ favourites ] ) ; }
Construct a new discussion summaries exporter for the specified user and set of discussions.

@param   stdClass        $user The user viewing the forum
@param   forum_entity    $forum The forum being viewed
@param   discussion_summary_entity[] $discussions The set of discussion summaries to export
@param   stdClass[]      $groupsbyauthorid The set of groups in an associative array for each author
@param   stdClass[]      $groupsbyid The set of groups in the forum in an associative array for each group
@param   int[]           $discussionreplycount The number of replies for each discussion
@param   int[]           $discussionunreadcount The number of unread posts for each discussion
@param   int[]           $latestpostids The latest post id for each discussion
@param   int[]           $postauthorcontextids The context ids for the first and last post authors (indexed by author id)
@param   int[]           $favourites The list of discussion ids that have been favourited
@return  discussion_summaries_exporter
Construct a new discussion summaries exporter for the specified user and set of discussions .