Add possibility to pass extra parameters in getTree

It would be usefull to be able to pass parameters that can be retrived in the method addFlatTreeConditions.

For example if you need to add conditions depending on the user rights or others...