#585: Introduce new severity "info" and rename "none" to "silent"
------------------------+---------------------------------------------------
Reporter: david | Owner: dominik
Type: task | Status: new
Priority: normal | Milestone: 0.11
Component: validation | Version: 0.11.0RC5
Severity: major | Keywords:
------------------------+---------------------------------------------------
Unlike "none", "info" will preserve the incidents in the validation
manager, so they can be queried from within the action. An example would
be an ImageValidator whose result can be checked from inside the action to
determine whether or not the uploaded file was an image.
The current "none" severity will remain, but is deprecated and mapped to
the new "silent".
After this change, the available severities are:
1. fatal (aborts validation immediately, error is thrown)
1. error (error is thrown)
1. notice (error is thrown, but validation is not marked as failed. that
means the error is only displayed if another validator with higher
severity caused the validation to fail altogether)
1. info (no error thrown, incidents are stored, field is not removed from
the result)
1. silent (no error thrown, incidents are stored, field is removed from
the result)
--
Ticket URL: <http://trac.agavi.org/ticket/585>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets