프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$feeds | array | ||
$http | ClientInterface; | ||
$logger | Psr\Log\LoggerInterface | ||
$parsers | array | ||
$processors | array |
메소드 | 설명 | |
---|---|---|
__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 ) |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | FastFeed\Parser\ParserInterface |
public popProcessor ( ) : FastFeed\Processor\ProcessorInterface | ||
리턴 | 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 |