You are here

class SiteAuditReportInsights in Site Audit 7

Class SiteAuditReportInsights.

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
SiteAuditReportAbstract::$checks protected property Individual check objects.
SiteAuditReportAbstract::$hasFail protected property Flag to indicate whether any of the checks are a complete FAIL.
SiteAuditReportAbstract::$percent protected property Percentage pass.
SiteAuditReportAbstract::$registry protected property Container that's passed between each SiteAuditCheckAbstract.
SiteAuditReportAbstract::$scoreMax protected property Maximum score.
SiteAuditReportAbstract::$scoreTotal protected property Total score.
SiteAuditReportAbstract::getCheckNames public function Get the names of all the checks within the report.
SiteAuditReportAbstract::getPercent public function Get the calculated percentage.
SiteAuditReportAbstract::getPercentCssClass public function Get the CSS class associated with a percentage.
SiteAuditReportAbstract::getReportName protected function Get the complete name of the report.
SiteAuditReportAbstract::render public function Render the report; respects drush options.
SiteAuditReportAbstract::toDrush public function Render response using Drush.
SiteAuditReportAbstract::toHtml public function Render response as HTML; does not include head, body, etc.
SiteAuditReportAbstract::toJson public function Render response using JSON.
SiteAuditReportInsights::getLabel public function Implements \SiteAudit\Report\Abstract\getLabel(). Overrides SiteAuditReportAbstract::getLabel
SiteAuditReportInsights::__construct public function Override parent constructor to provide argument support. Overrides SiteAuditReportAbstract::__construct