[dev] function parameters

Jan Schneider jan at horde.org
Thu Oct 21 01:11:48 PDT 2004


Zitat von Ben Chavet <ben at chavet.net>:

> I'm working on allowing ansel to show gallery pages containing only a given
> user's galleries. Not sure that made sense, but anyway...
>
> To do this, I need to add an $owner parameter to Ansel::listGalleries() &
> Ansel::countGalleries().  I'm debating on whether I should add this parameter
> to the end of the parameter list, or if I should add it in the order that
> Horde_Share::listShares() and Horde_Share::countShares().
>
> Personally, I prefer to put the parameters in the same order as the 
> Horde_Share
> functions.  But that means I risk breaking other stuff.

I personally like consistency, and you can grep for (count|list)Galleries
calls.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


More information about the dev mailing list