class SiteAuditReportInsights in Site Audit 7
Class SiteAuditReportInsights.
Hierarchy
- class \SiteAuditReportAbstract
- class \SiteAuditReportInsights
Expanded class hierarchy of SiteAuditReportInsights
File
- Report/
Insights.php, line 10 - Contains \SiteAudit\Report\Insights.
View source
class SiteAuditReportInsights extends SiteAuditReportAbstract {
/**
* Override parent constructor to provide argument support.
*
* @param string $url
* URL of site to test.
* @param string $key
* Google API key.
*/
public function __construct($url, $key) {
$this->registry['url'] = $url;
$this->registry['key'] = $key;
parent::__construct();
}
/**
* Implements \SiteAudit\Report\Abstract\getLabel().
*/
public function getLabel() {
return dt('Google PageSpeed Insights');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SiteAuditReportAbstract:: |
protected | property | Individual check objects. | |
SiteAuditReportAbstract:: |
protected | property | Flag to indicate whether any of the checks are a complete FAIL. | |
SiteAuditReportAbstract:: |
protected | property | Percentage pass. | |
SiteAuditReportAbstract:: |
protected | property | Container that's passed between each SiteAuditCheckAbstract. | |
SiteAuditReportAbstract:: |
protected | property | Maximum score. | |
SiteAuditReportAbstract:: |
protected | property | Total score. | |
SiteAuditReportAbstract:: |
public | function | Get the names of all the checks within the report. | |
SiteAuditReportAbstract:: |
public | function | Get the calculated percentage. | |
SiteAuditReportAbstract:: |
public | function | Get the CSS class associated with a percentage. | |
SiteAuditReportAbstract:: |
protected | function | Get the complete name of the report. | |
SiteAuditReportAbstract:: |
public | function | Render the report; respects drush options. | |
SiteAuditReportAbstract:: |
public | function | Render response using Drush. | |
SiteAuditReportAbstract:: |
public | function | Render response as HTML; does not include head, body, etc. | |
SiteAuditReportAbstract:: |
public | function | Render response using JSON. | |
SiteAuditReportInsights:: |
public | function |
Implements \SiteAudit\Report\Abstract\getLabel(). Overrides SiteAuditReportAbstract:: |
|
SiteAuditReportInsights:: |
public | function |
Override parent constructor to provide argument support. Overrides SiteAuditReportAbstract:: |