FieldEnabled.php in Site Audit 7
Same filename and directory in other branches
Contains \SiteAudit\Check\Content\FieldEnabled.
File
Check/Content/FieldEnabled.phpView source
<?php
/**
* @file
* Contains \SiteAudit\Check\Content\FieldEnabled.
*/
/**
* Class SiteAuditCheckContentFieldEnabled.
*/
class SiteAuditCheckContentFieldEnabled extends SiteAuditCheckAbstract {
/**
* Implements \SiteAudit\Check\Abstract\getLabel().
*/
public function getLabel() {
return dt('Field status');
}
/**
* Implements \SiteAudit\Check\Abstract\getDescription().
*/
public function getDescription() {
return dt('Check to see if enabled');
}
/**
* Implements \SiteAudit\Check\Abstract\getResultFail().
*/
public function getResultFail() {
}
/**
* Implements \SiteAudit\Check\Abstract\getResultInfo().
*/
public function getResultInfo() {
return dt('Field is not enabled.');
}
/**
* Implements \SiteAudit\Check\Abstract\getResultPass().
*/
public function getResultPass() {
return dt('Field is enabled.');
}
/**
* Implements \SiteAudit\Check\Abstract\getResultWarn().
*/
public function getResultWarn() {
}
/**
* Implements \SiteAudit\Check\Abstract\getAction().
*/
public function getAction() {
}
/**
* Implements \SiteAudit\Check\Abstract\calculateScore().
*/
public function calculateScore() {
if (!module_exists('field')) {
$this->abort = TRUE;
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
}
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS;
}
}
Classes
Name | Description |
---|---|
SiteAuditCheckContentFieldEnabled | Class SiteAuditCheckContentFieldEnabled. |