PHP Класс PicoFeed\Scraper\RuleParser

Автор: Frederic Guillot
Наследование: implements PicoFeed\Scraper\ParserInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

execute() публичный Метод

Get the relevant content with predefined rules.
public execute ( ) : string
Результат string

findContent() публичный Метод

Fetch content based on Xpath rules.
public findContent ( )

stripTags() публичный Метод

Remove HTML tags.
public stripTags ( )