프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
메소드 | 설명 | |
---|---|---|
__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 ( ) : |
||
리턴 |
public execute ( ) : PicoFeed\Parser\Feed | ||
리턴 | 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 | ||
리턴 | string |
public getDateParser ( ) : PicoFeed\Parser\DateParser | ||
리턴 | PicoFeed\Parser\DateParser |
public getItemPostProcessor ( ) : PicoFeed\Processor\ItemPostProcessor | ||
리턴 | PicoFeed\Processor\ItemPostProcessor |
public static isLanguageRTL ( string $language ) : boolean | ||
$language | string | Language: fr-FR, en-US |
리턴 | boolean |
public registerSupportedNamespaces ( SimpleXMLElement $xml ) : SimpleXMLElement | ||
$xml | SimpleXMLElement | Feed xml |
리턴 | SimpleXMLElement |
public setConfig ( PicoFeed\Config\Config $config ) : |
||
$config | PicoFeed\Config\Config | Config instance |
리턴 |
public setGrabberIgnoreUrls ( array $urls ) : |
||
$urls | array | URLs |
리턴 |
public setHashAlgo ( string $algo ) : |
||
$algo | string | Algorithm name |
리턴 |
protected array $used_namespaces | ||
리턴 | array |