mosbth / Anax-oophp

Course material for the oophp-course, builds on Anax-base.
MIT License
0 stars 6 forks source link

CTextfilter - doFilter() #8

Closed TomasSjosten closed 9 years ago

TomasSjosten commented 9 years ago

Expects $filters param to be string currently. I added support for array, which I think was the original idea.

$filter = (is_array($filters)) ? $filters : preg_replace('/\s/', '', explode(',', $filters));

mosbth commented 9 years ago

It seems like a good approach to support both. I added it to the repo where I do further development on CTextFilter. https://github.com/mosbth/ctextfilter/issues/4