Свойство | Type | Description | |
---|---|---|---|
$_Container | DI container. | ||
$_Crawler | Essence\Crawler | URL crawler. | |
$_Extractor | Essence\Extractor | Information extractor. | |
$_Http | Http | HTTP client. | |
$_Replacer | Essence\Replacer | URL replacer. |
Méthode | 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 ( ) : |
||
Résultat | Container. |
public extractAll ( array $urls, array $options = [] ) | ||
$urls | array | |
$options | array |
protected Container,Essence\Di $_Container | ||
Résultat |
protected Essence\Crawler $_Crawler | ||
Résultat | Essence\Crawler |
protected Essence\Extractor $_Extractor | ||
Résultat | Essence\Extractor |