Свойство | Type | Description | |
---|---|---|---|
$feeds | array | ||
$http | ClientInterface; | ||
$logger | Psr\Log\LoggerInterface | ||
$parsers | array | ||
$processors | array |
Méthode | Description | |
---|---|---|
__construct ( Ivory\HttpAdapter\HttpAdapterInterface $http, Psr\Log\LoggerInterface $logger ) | ||
addFeed ( string $channel, string $feed ) | Add feed to channel | |
fetch ( string $channel = 'default' ) : |
||
getFeed ( string $channel ) : string | Retrieve a channel | |
getFeeds ( ) : array | Retrieve all channels | |
popParser ( ) : FastFeed\Parser\ParserInterface | ||
popProcessor ( ) : FastFeed\Processor\ProcessorInterface | ||
pushParser ( FastFeed\Parser\ParserInterface $parser ) | ||
pushProcessor ( FastFeed\Processor\ProcessorInterface $processor ) | ||
setFeed ( string $channel, string $feed ) | Set a channel | |
setHttpClient ( Guzzle\Http\ClientInterface $guzzle ) | Set Guzzle | |
setLogger ( Psr\Log\LoggerInterface $logger ) |
Méthode | Description | |
---|---|---|
get ( $url ) : Guzzle\Http\EntityBodyInterface | string | Retrieve content from a resource | |
log ( $message ) | ||
parse ( $content ) : array | ||
retrieve ( $channel ) : array |
public __construct ( Ivory\HttpAdapter\HttpAdapterInterface $http, Psr\Log\LoggerInterface $logger ) | ||
$http | Ivory\HttpAdapter\HttpAdapterInterface | |
$logger | Psr\Log\LoggerInterface |
public popParser ( ) : FastFeed\Parser\ParserInterface | ||
Résultat | FastFeed\Parser\ParserInterface |
public popProcessor ( ) : FastFeed\Processor\ProcessorInterface | ||
Résultat | FastFeed\Processor\ProcessorInterface |
public pushParser ( FastFeed\Parser\ParserInterface $parser ) | ||
$parser | FastFeed\Parser\ParserInterface |
public pushProcessor ( FastFeed\Processor\ProcessorInterface $processor ) | ||
$processor | FastFeed\Processor\ProcessorInterface |
public setHttpClient ( Guzzle\Http\ClientInterface $guzzle ) | ||
$guzzle | Guzzle\Http\ClientInterface |
public setLogger ( Psr\Log\LoggerInterface $logger ) | ||
$logger | Psr\Log\LoggerInterface |
protected LoggerInterface,Psr\Log $logger | ||
Résultat | Psr\Log\LoggerInterface |