phpBB API Documentation
Class

phpbb\feed\factory

class factory

Factory class to return correct object

Methods

__construct(ContainerInterface $container, config $config, driver_interface $db)

Constructor

object get_feed(string $mode, int $forum_id, int $topic_id)

Return correct object for specified mode

Details

at line 42
public __construct(ContainerInterface $container, config $config, driver_interface $db)

Constructor

Parameters

ContainerInterface $container Container object
config $config Config object
driver_interface $db Database connection

at line 58
public object get_feed(string $mode, int $forum_id, int $topic_id)

Return correct object for specified mode

Parameters

string $mode The feeds mode.
int $forum_id Forum id specified by the script if forum feed provided.
int $topic_id Topic id specified by the script if topic feed provided.

Return Value

object Returns correct feeds object for specified mode.