PHP Class Xpressengine\Seo\Importers\AbstractImporter

Author: XE Developers ([email protected])
显示文件 Open project: xpressengine/xpressengine Class Usage Examples

Protected Properties

Property Type Description
$cuts array will be cut items name and length
$frontend Xpressengine\Presenter\Html\FrontendHandler FrontendHandler instance
$metaItems array meta items
$needHost array items of need prepend host
$request Illuminate\Http\Request Request instance

Public Methods

Method Description
__construct ( FrontendHandler $frontend, Illuminate\Http\Request $request ) Constructor
exec ( array $data ) : void Execute import job

Protected Methods

Method Description
addMeta ( string $key, string | array $contents ) : void Add meta tag
extractUrl ( array $data ) : string Extract url from data array
prependHost ( string $url ) : string prepend host to url path
substr ( string $origin, integer $len ) : string Substr

Method Details

__construct() public method

Constructor
public __construct ( FrontendHandler $frontend, Illuminate\Http\Request $request )
$frontend Xpressengine\Presenter\Html\FrontendHandler FrontendHandler instance
$request Illuminate\Http\Request Request instance

addMeta() protected method

Add meta tag
protected addMeta ( string $key, string | array $contents ) : void
$key string item key
$contents string | array meta content
return void

exec() public method

Execute import job
public exec ( array $data ) : void
$data array data array
return void

extractUrl() protected method

Extract url from data array
protected extractUrl ( array $data ) : string
$data array data array
return string

prependHost() protected method

prepend host to url path
protected prependHost ( string $url ) : string
$url string url path
return string

substr() protected method

Substr
protected substr ( string $origin, integer $len ) : string
$origin string origin text
$len integer cut length
return string

Property Details

$cuts protected_oe property

will be cut items name and length
protected array $cuts
return array

$frontend protected_oe property

FrontendHandler instance
protected FrontendHandler,Xpressengine\Presenter\Html $frontend
return Xpressengine\Presenter\Html\FrontendHandler

$metaItems protected_oe property

meta items
protected array $metaItems
return array

$needHost protected_oe property

items of need prepend host
protected array $needHost
return array

$request protected_oe property

Request instance
protected Request,Illuminate\Http $request
return Illuminate\Http\Request