PHP Class PicoFeed\Scraper\RuleParser

Author: Frederic Guillot
Inheritance: implements PicoFeed\Scraper\ParserInterface
Datei anzeigen Open project: fguillot/picofeed

Public Methods

Method Description
__construct ( string $html, array $rules ) Constructor.
execute ( ) : string Get the relevant content with predefined rules.
findContent ( ) Fetch content based on Xpath rules.
findNextLink ( ) : string Fetch next link based on Xpath rules.
stripTags ( ) Remove HTML tags.

Method Details

__construct() public method

Constructor.
public __construct ( string $html, array $rules )
$html string
$rules array

execute() public method

Get the relevant content with predefined rules.
public execute ( ) : string
return string

findContent() public method

Fetch content based on Xpath rules.
public findContent ( )

stripTags() public method

Remove HTML tags.
public stripTags ( )