Re: Driver Interface and protected properties
| From: | Mark Wiesemann | Date: | Wed, 08 Mar 2006 20:15:56 +0000 |
| Subject: | Re: Driver Interface and protected properties | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-41725@lists.php.net to get a copy of this message | ||
Hi,
Olivier Guilyardi wrote:
Hi all, I am currently working on the SDG (renderer) driver interface refactoring (bug #5859). In SDG, users are allowed and encouraged to write their own specific drivers. That means : drivers are user-space code. [...]
Because drivers are considered user-space code, I am worried about these properties : do you think that all interactions between the base class and drivers should be method-based, and all properties made private ?I would differ between real user-space code (i.e. code that _uses_ SDG) and code that extends SDG for usage in user-space code. Therefore, I would stay with the current situation. Which properties could be accessed or changed is clearly stated in the phpdoc comments. Regards, Mark