Re: Re: Driver Interface and protected properties

From: Date: Sun, 12 Mar 2006 21:04:45 +0000
Subject: Re: Re: Driver Interface and protected properties
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-41766@lists.php.net to get a copy of this message
Hi Olivier, Olivier Guilyardi wrote: [...]
If we need to change something in the core renderer layer we may then cause BC breaks for such users, exactly as what's happening with the SDG::renderer property. For now SDG is beta, but think of tomorrow when it will be stable. We may have a great idea, but these properties may forbid us to code it, because they'll put heavy BC constraints on us. [...]
The alternative I'm thinking about is simply to let the driver call some protected methods in order to get what it needs, and to make a better use of the arguments that are passed to the protected methods which are part of the driver interface.
To keep this answer short: Let's do it the way you proposed it (methods instead of direct access to properties) -- although I like the direct property access better, your BC keeping argument is even better. Regards, Mark

« previous php.pear.dev (#41766) next »