On 08/03/15 08:57, Thomas Gielfeldt wrote: >> > > What about a "hybrid" solution? Pass the flags as well as a callback. Then > the implementor can react on the flags if necessary. > > https://gist.github.com/gielfeldt/c0ca611f525878c36a65
Off topic I know - but how the **** do I make the github text readable? Light grey on white may work for some, but even changing contrast on the monitor I can't actually read that :( > In this case, I've introduced a new constant for user defined sort. > However, I see a couple of variations on this. > > 1.) Constant for determining user defined sort (as per the example). > 2.) 2 methods, one for usorts, and one for the others (still with both > flags and callbacks). This will result in 6 methods, if we keep it to just > one interface. > 3.) 3 interfaces with either one or two methods (option 1 & 2 above). -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php