rename ok to valid

This commit is contained in:
msquare 2016-09-29 12:33:03 +02:00
parent f05f1a3cd4
commit c231070dcc
2 changed files with 6 additions and 6 deletions

View File

@ -50,19 +50,19 @@ function event_config_edit_controller() {
$result = check_request_date('buildup_start_date', _("Please enter buildup start date."), true); $result = check_request_date('buildup_start_date', _("Please enter buildup start date."), true);
$buildup_start_date = $result->getValue(); $buildup_start_date = $result->getValue();
$valid &= $result->isOk(); $valid &= $result->isValid();
$result = check_request_date('event_start_date', _("Please enter event start date."), true); $result = check_request_date('event_start_date', _("Please enter event start date."), true);
$event_start_date = $result->getValue(); $event_start_date = $result->getValue();
$valid &= $result->isOk(); $valid &= $result->isValid();
$result = check_request_date('event_end_date', _("Please enter event end date."), true); $result = check_request_date('event_end_date', _("Please enter event end date."), true);
$event_end_date = $result->getValue(); $event_end_date = $result->getValue();
$valid &= $result->isOk(); $valid &= $result->isValid();
$result = check_request_date('teardown_end_date', _("Please enter teardown end date."), true); $result = check_request_date('teardown_end_date', _("Please enter teardown end date."), true);
$teardown_end_date = $result->getValue(); $teardown_end_date = $result->getValue();
$valid &= $result->isOk(); $valid &= $result->isValid();
if ($buildup_start_date != null && $event_start_date != null && $buildup_start_date > $event_start_date) { if ($buildup_start_date != null && $event_start_date != null && $buildup_start_date > $event_start_date) {
$valid = false; $valid = false;

View File

@ -122,8 +122,8 @@ class ValidationResult {
/** /**
* Is the value valid? * Is the value valid?
*/ */
public function isOk() { public function isValid() {
return $this->ok; return $this->valid;
} }
/** /**