variables and costants in class definition
| From: | giancarlo pinerolo | Date: | Fri, 17 Aug 2001 21:25:23 +0000 |
| Subject: | variables and costants in class definition | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-1597@lists.php.net to get a copy of this message | ||
I proposed this feature/enhancement to php:
have the possibility to pass variables and constants in class
definitions
eg:
class {_DB_CLASS}
{
...
or
class {$myclass} extends {_BASE_CLASS}
{
...
I think this would solve many integration and installation problems, and
save a lot of coding for conditions, and turn arounds with factories and
wrapper objects for classnames etc. Some use certainly there would be..
But maybe I drunk too much pinot. What do you think?
Giancarlo