You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.0 KiB
51 lines
1.0 KiB
<?php
|
|
|
|
/**
|
|
* Validation object
|
|
*
|
|
* Standard: PSR-2
|
|
*
|
|
* @link http://www.php-fig.org/psr/psr-2 Full Documentation
|
|
*
|
|
* @package SC\DUPX\U
|
|
*/
|
|
|
|
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
|
|
|
|
class DUPX_Validation_test_archive_check extends DUPX_Validation_abstract_item
|
|
{
|
|
protected function runTest()
|
|
{
|
|
if (DUPX_Conf_Utils::isConfArkPresent()) {
|
|
if (DUPX_Conf_Utils::archiveExists()) {
|
|
return self::LV_PASS;
|
|
} else {
|
|
return self::LV_SOFT_WARNING;
|
|
}
|
|
} else {
|
|
return self::LV_FAIL;
|
|
}
|
|
}
|
|
|
|
public function getTitle()
|
|
{
|
|
return 'Archive Check';
|
|
}
|
|
|
|
protected function failContent()
|
|
{
|
|
return dupxTplRender('parts/validation/tests/archive-check', array(
|
|
'testResult' => $this->testResult
|
|
), false);
|
|
}
|
|
|
|
protected function swarnContent()
|
|
{
|
|
return $this->failContent();
|
|
}
|
|
|
|
protected function passContent()
|
|
{
|
|
return $this->failContent();
|
|
}
|
|
}
|
|
|