Property | Type | Description | |
---|---|---|---|
$content | string | Feed content (XML data). | |
$fallback_url | string | Fallback url. | |
$namespaces | array | XML namespaces supported by parser. | |
$used_namespaces | array | XML namespaces used in document. |
Method | Description | |
---|---|---|
__construct ( string $content, string $http_encoding = '', string $fallback_url = '' ) | Constructor. | |
checkFeedUrl ( PicoFeed\Parser\Feed $feed ) | Check if the feed url is correct. | |
checkItemUrl ( PicoFeed\Parser\Feed $feed, PicoFeed\Parser\Item $item ) | Check if the item url is correct. | |
checkSiteUrl ( PicoFeed\Parser\Feed $feed ) | Check if the site url is correct. | |
disableContentFiltering ( ) : |
Enable the content grabber. | |
enableContentGrabber ( boolean $needsRuleFile = false, null | Closure $scraperCallback = null ) : |
Enable the content grabber. | |
execute ( ) : PicoFeed\Parser\Feed | Parse the document. | |
findItemDate ( SimpleXMLElement $entry, PicoFeed\Parser\Item $item, PicoFeed\Parser\Feed $feed ) | Find the item date. | |
generateId ( ) : string | Generate a unique id for an entry (hash all arguments). | |
getDateParser ( ) : PicoFeed\Parser\DateParser | Get DateParser instance | |
getItemPostProcessor ( ) : PicoFeed\Processor\ItemPostProcessor | Get Item Post Processor instance | |
isLanguageRTL ( string $language ) : boolean | Return true if the given language is "Right to Left". | |
registerSupportedNamespaces ( SimpleXMLElement $xml ) : SimpleXMLElement | Register all supported namespaces to be used within an xpath query. | |
setConfig ( PicoFeed\Config\Config $config ) : |
Set config object. | |
setGrabberIgnoreUrls ( array $urls ) : |
Set ignored URLs for the content grabber. | |
setHashAlgo ( string $algo ) : |
Set Hash algorithm used for id generation. |
public checkFeedUrl ( PicoFeed\Parser\Feed $feed ) | ||
$feed | PicoFeed\Parser\Feed | Feed object |
public checkItemUrl ( PicoFeed\Parser\Feed $feed, PicoFeed\Parser\Item $item ) | ||
$feed | PicoFeed\Parser\Feed | Feed object |
$item | PicoFeed\Parser\Item | Item object |
public checkSiteUrl ( PicoFeed\Parser\Feed $feed ) | ||
$feed | PicoFeed\Parser\Feed | Feed object |
public disableContentFiltering ( ) : |
||
return |
public execute ( ) : PicoFeed\Parser\Feed | ||
return | PicoFeed\Parser\Feed |
public findItemDate ( SimpleXMLElement $entry, PicoFeed\Parser\Item $item, PicoFeed\Parser\Feed $feed ) | ||
$entry | SimpleXMLElement | Feed item |
$item | PicoFeed\Parser\Item | Item object |
$feed | PicoFeed\Parser\Feed | Feed object |
public generateId ( ) : string | ||
return | string |
public getDateParser ( ) : PicoFeed\Parser\DateParser | ||
return | PicoFeed\Parser\DateParser |
public getItemPostProcessor ( ) : PicoFeed\Processor\ItemPostProcessor | ||
return | PicoFeed\Processor\ItemPostProcessor |
public static isLanguageRTL ( string $language ) : boolean | ||
$language | string | Language: fr-FR, en-US |
return | boolean |
public registerSupportedNamespaces ( SimpleXMLElement $xml ) : SimpleXMLElement | ||
$xml | SimpleXMLElement | Feed xml |
return | SimpleXMLElement |
public setConfig ( PicoFeed\Config\Config $config ) : |
||
$config | PicoFeed\Config\Config | Config instance |
return |
public setGrabberIgnoreUrls ( array $urls ) : |
||
$urls | array | URLs |
return |
public setHashAlgo ( string $algo ) : |
||
$algo | string | Algorithm name |
return |
protected array $namespaces | ||
return | array |
protected array $used_namespaces | ||
return | array |