PHP Class Piwik\Plugins\SEO\Metric\DomainAge

Inheritance: implements Piwik\Plugins\SEO\Metric\MetricsProvider
Show file Open project: piwik/piwik

Public Methods

Method Description
__construct ( Piwik\Metrics\Formatter $formatter, Psr\Log\LoggerInterface $logger )
getMetrics ( $domain )

Private Methods

Method Description
getAgeArchiveOrg ( string $domain ) : integer Returns the domain age archive.org lists for the current url
getAgeWhoIs ( string $domain ) : integer Returns the domain age who.is lists for the current url
getAgeWhoisCom ( string $domain ) : integer Returns the domain age whois.com lists for the current url
getUrl ( $url )

Method Details

__construct() public method

public __construct ( Piwik\Metrics\Formatter $formatter, Psr\Log\LoggerInterface $logger )
$formatter Piwik\Metrics\Formatter
$logger Psr\Log\LoggerInterface

getMetrics() public method

public getMetrics ( $domain )