Overview

Namespaces

  • FastFeed
    • Aggregator
    • Cache
    • Exception
    • Logger
    • Parser
    • Processor
  • PHP

Classes

  • Factory
  • FastFeed
  • Item

Interfaces

  • FastFeedInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class FastFeed

FastFeed

FastFeed\FastFeed implements FastFeed\FastFeedInterface

Direct known subclasses

FastFeed\Cache\FastFeed
Namespace: FastFeed
Located at src/FastFeed.php
Methods summary
public
# __construct( Guzzle\Http\ClientInterface $guzzle, Psr\Log\LoggerInterface $logger )

Parameters

$guzzle
Guzzle\Http\ClientInterface
$guzzle
$logger
Psr\Log\LoggerInterface
$logger
public
# addFeed( string $channel, string $feed )

Add feed to channel

Add feed to channel

Parameters

$channel
string
$channel
$feed
string
$feed

Throws

FastFeed\Exception\LogicException

Implementation of

FastFeed\FastFeedInterface::addFeed()
public array
# fetch( string $channel = 'default' )

Parameters

$channel
string
$channel

Returns

array

Throws

FastFeed\Exception\LogicException

Implementation of

FastFeed\FastFeedInterface::fetch()
public string
# getFeed( string $channel )

Retrieve a channel

Retrieve a channel

Parameters

$channel
string
$channel

Returns

string

Throws

FastFeed\Exception\LogicException

Implementation of

FastFeed\FastFeedInterface::getFeed()
public FastFeed\Parser\ParserInterface
# popParser( )

Returns

FastFeed\Parser\ParserInterface

Throws

FastFeed\Exception\LogicException

Implementation of

FastFeed\FastFeedInterface::popParser()
public
# pushParser( FastFeed\Parser\ParserInterface $parser )

Parameters

$parser
FastFeed\Parser\ParserInterface
$parser

Implementation of

FastFeed\FastFeedInterface::pushParser()
public FastFeed\Processor\ProcessorInterface
# popProcessor( )

Returns

FastFeed\Processor\ProcessorInterface

Throws

FastFeed\Exception\LogicException

Implementation of

FastFeed\FastFeedInterface::popProcessor()
public
# pushProcessor( FastFeed\Processor\ProcessorInterface $processor )

Parameters

$processor
FastFeed\Processor\ProcessorInterface
$processor

Implementation of

FastFeed\FastFeedInterface::pushProcessor()
public array
# getFeeds( )

Retrieve all channels

Retrieve all channels

Returns

array

Implementation of

FastFeed\FastFeedInterface::getFeeds()
public
# setHttpClient( Guzzle\Http\ClientInterface $guzzle )

Set Guzzle

Set Guzzle

Parameters

$guzzle
Guzzle\Http\ClientInterface
$guzzle

Implementation of

FastFeed\FastFeedInterface::setHttpClient()
public
# setLogger( Psr\Log\LoggerInterface $logger )

Parameters

$logger
Psr\Log\LoggerInterface
$logger

Implementation of

FastFeed\FastFeedInterface::setLogger()
public
# setFeed( string $channel, string $feed )

Set a channel

Set a channel

Parameters

$channel
string
$channel
$feed
string
$feed

Throws

FastFeed\Exception\LogicException

Implementation of

FastFeed\FastFeedInterface::setFeed()
protected Guzzle\Http\EntityBodyInterface|string
# get( mixed $url )

Retrieve content from a resource

Retrieve content from a resource

Parameters

$url
mixed
$url

Returns

Guzzle\Http\EntityBodyInterface|string
protected array
# retrieve( mixed $channel )

Parameters

$channel
mixed
$channel

Returns

array
protected array
# parse( mixed $content )

Parameters

$content
mixed
$content

Returns

array
protected
# log( mixed $message )

Parameters

$message
mixed
$message
Constants summary
string VERSION '0.1'
#

Const

VERSION
string USER_AGENT 'FastFeed/FastFeed'
#

Const

USER_AGENT
Properties summary
protected ClientInterface; $http
#
protected Psr\Log\LoggerInterface $logger
#
protected array $parsers array()
#
protected array $processors array()
#
protected array $feeds array()
#
API documentation generated by ApiGen 2.8.0