Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, October 14, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  custom filters

phpMyEdit Features     custom filters
Post new topic   Reply to topic    
 
would you use it ?
yes
100%
 100%  [ 4 ]
no
0%
 0%  [ 0 ]
Total Votes : 4
michal     Joined: 17 Jun 2003   Posts: 537   Location: Slovakia
Post Posted: 2004-02-20 09:48
Back to top  Reply with quote     

current filters (in F mode) are hardcoded into the class and allow very precisous filtering. however, this is sometimes not desirable. for example in a datetime field, i want to be able to click on whether to show rows only from february or january. i know this could be made by extra buttons and $opts['filters'], but that's not nice.
i imagine configuration like this:
Code:

$opts['fdd']['col_name']['filter'] = array ("date >= '2004-1-1' AND date <= '2004-1-31'" => "january 2004");


the questions:
- API (where to put this into fdd)
- whether to show the filter in post variables or not (preferably not, safety reasons)
- whether to use $tbmain and $idmain as aliases for table and column

 
nepto     Joined: 06 Jan 2003   Posts: 381   Location: Phoenix, Arizona (USA)
Post Posted: 2004-03-20 23:21
Back to top  Reply with quote     

Something similar to this is already written in the documentation.

http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.filters.html

It could be definitely useful feature.

_________________
Ondrej Jombik (Nepto)
Visit my homepage , review my recent CV or projects and give me some feedback .
 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy