Comparing
#25 with
#26
Revision #26 was created by
CedSha on Feb 19, 2013, 6:29:17 AM.
Add another sample for filter method
Content
[...]
### `filter` : [CFilterValidator]
Transforms the data being validated based on a filter.
1. **filter**, the filter method.
*Examples:*
- With standard function
```php
array('mycode','filter','filter'=>'strtoupper'),
```
- With custom function
```php
array('eanupc','filter','filter'=>array($this,'keepProductCode')),
...
public function keepProductCode($eanupc){[...]