function DBVersionUnder($params) { parent::BaseTest($params); if (!is_array($this->params) || count($this->params) <= 0) { ErrorStack::addError("Invalid parameters, you need to provide the field names and version", ERRORSTACK_ERROR, 'DBVersionUnder'); $this->result = INSTALLER_TEST_FAIL; return $this->result; } }
function AdminPasswordConfirmed($params) { parent::BaseTest($params); if (!is_array($this->params) || count($this->params) <= 0) { ErrorStack::addError("Invalid parameters, you need to provide the password field names", ERRORSTACK_ERROR, 'AdminPasswordConfirmed'); $this->result = INSTALLER_TEST_FAIL; return $this->result; } }
function WritableLocation($params) { parent::BaseTest($params); if (!is_array($this->params) || count($this->params) <= 0) { ErrorStack::addError("Invalid parameters, you must provide at least one location to test.", ERRORSTACK_ERROR, 'WritableLocation'); $this->result = INSTALLER_TEST_FAIL; return $this->result; } }
function PHPVersionUnder($params) { parent::BaseTest($params); if (!is_array($this->params) || count($this->params) <= 0) { ErrorStack::addError("Invalid parameters, version to test against must be supplied as the only item in an array", ERRORSTACK_ERROR, 'PHPVersionUnder'); $this->result = INSTALLER_TEST_FAIL; return $this->result; } }
function PHPMagicQuotes($params) { parent::BaseTest($params); if (is_array($this->params) || count($this->params) < 0) { if ($params[0] != "On" && $params[0] != "Off") { ErrorStack::addError("Invalid parameters, must be On or Off", ERRORSTACK_ERROR, 'PHPMagicQuotes'); } $this->result = INSTALLER_TEST_FAIL; return $this->result; } }