public function SiteAuditCheckAbstract::__construct in Site Audit 7
Same name and namespace in other branches
- 8.2 Check/Abstract.php \SiteAuditCheckAbstract::__construct()
Constructor.
Parameters
array $registry: Aggregates data from each individual check.
bool $opt_out: If set, will not perform checks.
File
- Check/
Abstract.php, line 59 - Contains \SiteAudit\Check\Abstract.
Class
- SiteAuditCheckAbstract
- Class SiteAuditCheckAbstract.
Code
public function __construct($registry, $opt_out = FALSE) {
$this->registry = $registry;
if ($opt_out) {
$this->optOut = TRUE;
$this->score = SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
}
}