You are here

class SiteAuditReportBestPractices in Site Audit 8.2

Same name and namespace in other branches
  1. 7 Report/BestPractices.php \SiteAuditReportBestPractices

Class SiteAuditReportBestPractices.

Hierarchy

Expanded class hierarchy of SiteAuditReportBestPractices

File

Report/BestPractices.php, line 10
Contains \SiteAudit\Report\BestPractices.

View source
class SiteAuditReportBestPractices extends SiteAuditReportAbstract {

  /**
   * Implements \SiteAudit\Report\Abstract\getLabel().
   */
  public function getLabel() {
    return dt('Best practices');
  }

}

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 Check.
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.
SiteAuditReportAbstract::__construct public function Constructor; loads and executes checks based on the name of this report.
SiteAuditReportBestPractices::getLabel public function Implements \SiteAudit\Report\Abstract\getLabel(). Overrides SiteAuditReportAbstract::getLabel