PHP Class Eko\FeedBundle\Feed\FeedManager

This class manage feeds specified in configuration file
Author: Vincent Composieux ([email protected])
Inheritance: use trait Symfony\Component\DependencyInjection\ContainerAwareTrait
Show file Open project: eko/feedbundle Class Usage Examples

Protected Properties

Property Type Description
$config array
$feeds array
$formatters array
$router Symfony\Component\Routing\RouterInterface

Public Methods

Method Description
__construct ( Symfony\Component\Routing\RouterInterface $router, array $config, array $formatters ) Constructor.
get ( string $feedName ) : Eko\FeedBundle\Feed\Feed Return specified Feed instance if exists.
has ( string $feed ) : boolean Check if feed exists in configuration under 'feeds' node.

Method Details

__construct() public method

Constructor.
public __construct ( Symfony\Component\Routing\RouterInterface $router, array $config, array $formatters )
$router Symfony\Component\Routing\RouterInterface A Symfony router instance
$config array Configuration settings
$formatters array Feed formatters list

get() public method

Return specified Feed instance if exists.
public get ( string $feedName ) : Eko\FeedBundle\Feed\Feed
$feedName string
return Eko\FeedBundle\Feed\Feed

has() public method

Check if feed exists in configuration under 'feeds' node.
public has ( string $feed ) : boolean
$feed string Feed name
return boolean

Property Details

$config protected property

protected array $config
return array

$feeds protected property

protected array $feeds
return array

$formatters protected property

protected array $formatters
return array

$router protected property

protected RouterInterface,Symfony\Component\Routing $router
return Symfony\Component\Routing\RouterInterface