[dev] Re: whups: Batch changes on tickets

Jan Schneider jan at horde.org
Thu Apr 14 05:21:01 PDT 2005


Zitat von Auke Bruinsma <air2 at dds.nl>:

>> Ah, no, I don't think this is necessary. We should stick to either concept.
>>
> Well that disables the use like this:
> Batch::Move ($newlocation, $tickets);
> and this use:
> $obj = new Batch ($tickets);
> $obj->Move ($newlocation);
> $obj->State ($newstate);
>
> Or is it not right to use this Batch class in both ways.

I would consider this bad design. In PHP 5 this wouldn't even be 
possible because a method can only be static *or* non-static.

Jan.

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


More information about the dev mailing list