Ticket #831 (closed enhancement: duplicate)
TPage::validate should return a value.
| Reported by: | sergeymorkovkin | Owned by: | xue |
|---|---|---|---|
| Priority: | low | Milestone: | 3.1.3 |
| Component: | Prado Framework v3 | Version: | 3.1 |
| Severity: | minor | Keywords: | |
| Cc: |
Description
When validating different validation groups it would be very convenient to receive a validation result in return to $this->validate('group') call. This will let developers to write constructs like the following one:
if ($this->validate() && $this->validate('additional') && ...) {
}
Otherwise we'll need to write hard-readable code:
$this->validate(); if ($this->getIsValid()) {
$this->validate('additional'); if ($this->getIsValid()) ...
}
Change History
Note: See
TracTickets for help on using
tickets.
