Property | Type | Description | |
---|---|---|---|
$_Container | DI container. | ||
$_Crawler | Essence\Crawler | URL crawler. | |
$_Extractor | Essence\Extractor | Information extractor. | |
$_Http | Http | HTTP client. | |
$_Replacer | Essence\Replacer | URL replacer. |
Method | Description | |
---|---|---|
__construct ( array $configuration = [] ) | Constructor. | |
container ( ) : |
Returns the internal DI container. | |
crawl ( string $source, string $base = '' ) : array | Crawls the given source for extractable URLs, optionnaly resolving them relatively to a base one. | |
crawlUrl ( $url ) | ||
extract ( $url, array $options = [] ) | ||
extractAll ( array $urls, array $options = [] ) | ||
replace ( $text, $template = null, array $options = [] ) |
public __construct ( array $configuration = [] ) | ||
$configuration | array | Dependency injection configuration. |
public container ( ) : |
||
return | Container. |
public extractAll ( array $urls, array $options = [] ) | ||
$urls | array | |
$options | array |
protected Container,Essence\Di $_Container | ||
return |
protected Essence\Crawler $_Crawler | ||
return | Essence\Crawler |
protected Essence\Extractor $_Extractor | ||
return | Essence\Extractor |