I'm working on PHP & Yii framework. Currently I found that filtering my data would be best fit with an HTML control that behave the same way as Gmail's label dropdown list does; e.g. the below screenshot.
The dropdown allow us to:
Command button
allow to select/deselect allIs it possible to archive that in Yii/PHP?
Your best bet is to search for a jQuery or similar plugin that will do the work for you and then wrap it in a component.
https://github.com/freshbooks/jquery-selectpicker
and
http://code.google.com/p/jaldropdown/
Are examples, but it depends on the exact implementation.
If you do a good job you could contribute the control back to the yii website for other people to use :)