AbstractImporter
abstract class AbstractImporter
AbstractImport class
Properties
protected FrontendHandler | $frontend | FrontendHandler instance | |
protected Request | $request | Request instance | |
protected array | $metaItems | meta items | |
protected array | $cuts | will be cut items name and length | |
protected array | $needHost | items of need prepend host | |
static protected UrlGenerator | $urlGenerator | UrlGenerator instance |
Methods
void
exec(array $data)
Execute import job
string
extractUrl(array $data)
Extract url from data array
void
addMeta(string $key, string|array $contents)
Add meta tag
string
substr(string $origin, int $len)
Substr
string
prependHost(string $url)
prepend host to url path
static void
setUrlGenerator(UrlGenerator $urlGenerator)
Set url generator instance
static UrlGenerator
getUrlGenerator()
Get url generator instance
Details
at line 82
__construct(FrontendHandler $frontend, Request $request)
Constructor
at line 94
void
exec(array $data)
Execute import job
at line 119
protected string
extractUrl(array $data)
Extract url from data array
at line 140
protected void
addMeta(string $key, string|array $contents)
Add meta tag
at line 162
protected string
substr(string $origin, int $len)
Substr
at line 175
protected string
prependHost(string $url)
prepend host to url path
at line 186
static void
setUrlGenerator(UrlGenerator $urlGenerator)
Set url generator instance
at line 196
static UrlGenerator
getUrlGenerator()
Get url generator instance