I expected to find the custom callback filters to be included in the InputFilter class in the clean method but I can only find them in the Form class under the filterField method
Move the callback filter check to InputFilter::clean method
This would allow us to call
$myValue = JFactory::getApplication()->input->get( 'myvalue', false, 'myCustomFilter::filter');
in our controllers to get our custom filter working to return our value ,which is not possible at the moment.
Labels |
Added:
?
|
Title |
|
Fair enough but that is not the same, I have not knowledge about the 'default' value in my myCustomFilter::filter method and may destroy it in my filter.
It will work, I just can't see why it is not in the InputFilter class.
The InputFilter
class by design does not support callbacks. Why a set of non-standard filters was introduced into the Form
class to me makes no sense (in a couple of cases this implies that someone confused filtering logic with validation logic as at least the "TEL" case should be a validation rule and not a filtering rule (and strangely enough there does exist a "tel" validation rule
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-11-12 09:55:13 |
Closed_By | ⇒ | joomdonation | |
Labels |
Added:
No Code Attached Yet
Removed: ? |
it works: