public function get_forum_exporter(
        stdClass $user,
        forum_entity $forum,
        ?int $currentgroup
    ) : forum_exporter {
        return new forum_exporter($forum, [
            'legacydatamapperfactory' => $this->legacydatamapperfactory,
            'capabilitymanager' => $this->managerfactory->get_capability_manager($forum),
            'urlfactory' => $this->urlfactory,
            'user' => $user,
            'currentgroup' => $currentgroup,
            'vaultfactory' => $this->vaultfactory,
        ]);
    }
public function get_forum_exporter(
        stdClass $user,
        forum_entity $forum,
        ?int $currentgroup
    ) : forum_exporter {
        return new forum_exporter($forum, [
            'legacydatamapperfactory' => $this->legacydatamapperfactory,
            'capabilitymanager' => $this->managerfactory->get_capability_manager($forum),
            'urlfactory' => $this->urlfactory,
            'user' => $user,
            'currentgroup' => $currentgroup,
            'vaultfactory' => $this->vaultfactory,
        ]);
    }
public function get_forum_exporter ( stdClass $ user , forum_entity $ forum , ? int $ currentgroup ) : forum_exporter { return new forum_exporter ( $ forum , [ 'legacydatamapperfactory' => $ this -> legacydatamapperfactory , 'capabilitymanager' => $ this -> managerfactory -> get_capability_manager ( $ forum ) , 'urlfactory' => $ this -> urlfactory , 'user' => $ user , 'currentgroup' => $ currentgroup , 'vaultfactory' => $ this -> vaultfactory , ] ) ; }
Construct a new forum exporter for the specified user and forum.

@param   stdClass        $user The user viewing the forum
@param   forum_entity    $forum The forum being viewed
@param   int             $currentgroup The group currently being viewed
@return  forum_exporter
Construct a new forum exporter for the specified user and forum .