getType(): flatten named parameters before calling init()#13
getType(): flatten named parameters before calling init()#13TDannhauer merged 2 commits intoFRAMEWORK_6_0from
Conversation
|
See also #11 and horde/turba#21. |
2079075 to
9e0d4a5
Compare
a176f9b to
b683314
Compare
b683314 to
02d0a5d
Compare
|
@TDannhauer Please merge. |
|
See also #11 and horde/turba#21. |
|
hi @amulet1 , is your proposal following approach A) or B) from the issue? I suggest we have a short call - maybe tomorrow - to discuss the approaches , pros and cons to select a road to go. |
|
I chose approach (A) due to several reasons:
|
|
hm I see my folder names via Exchange ActiveSync being suffixed with [1] - might this be a consequence of the changes as well @amulet1 ? edit: visible just in MS outlook - might be a client issue |
Changes in the PR should not break anything existing. |
This is a proposed fix to #12:
I made
getType()method private as it looks like this is not used anywhere outside ofHorde_Form. And this is the only place where the named parameters could be passed (there is also two direct calls toinit()inHorde_Form_Type_datetime, but these are internal and they use positional parameters already).I am using
paramsfrom value returned byabout(). I had to adjust it in a few places (non-critical change) to match original parameters names.Later we could also add support for defaults by adding them to array returned by
about()(and should not this method be static?). It is also possible to implement parameters type checks.With the migration to
V3this will all be reworked, anyway.