protected function _getStatusArray()
{
$pdoDriverArray = $this->_registry->get('pdoDriverArray');
$apacheModuleArray = $this->_registry->get('apacheModuleArray');
$testOsArray = ['linux', 'windows nt'];
$testDriverArray = ['sqlite', 'mysql', 'pgsql'];
$testModuleArray = ['mod_deflate', 'mod_headers', 'mod_rewrite'];
$statusArray = ['OS' => ['value' => $this->_registry->get('phpOs'), 'status' => in_array($this->_registry->get('phpOs'), $testOsArray) ? 1 : 0], 'PHP' => ['value' => $this->_registry->get('phpVersion'), 'status' => version_compare($this->_registry->get('phpVersion'), '5.4', '>') ? 1 : 0], 'PDO' => ['value' => implode($pdoDriverArray, ', '), 'status' => array_intersect($pdoDriverArray, $testDriverArray) ? 1 : 0], 'SESSION' => ['value' => $this->_registry->get('sessionStatus'), 'status' => $this->_registry->get('sessionStatus') ? 1 : 0]];
/* process optional */
if ($apacheModuleArray) {
foreach ($testModuleArray as $value) {
$statusArray[$value] = ['value' => null, 'status' => in_array($value, $apacheModuleArray) ? 1 : 0];
}
}
return $statusArray;
}