Bug #12819: variables and constants in classnames
| From: | giancarlo at navigare dot net | Date: | Fri, 17 Aug 2001 20:45:34 +0000 |
| Subject: | Bug #12819: variables and constants in classnames | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-63556@lists.php.net to get a copy of this message | ||
From: giancarlo@navigare.net
Operating system: any
PHP version: 4.0.6
PHP Bug Type: Feature/Change Request
Bug description: variables and constants in classnames
it would be nice to have the possibility to create classes with variable or
constants in 'classname' and 'extends'.
eg:
define $myauth="myAuth";
define ("_BASE_AUTH_CLASS", "Base_Auth");
class {$myauth} extends {_BASE_AUTH_CLASS}
{...
etc
This way package delivery and integration would be a lot easier, as they
can presume the existance of already defined classes, and adopt them.
Giancarlo
--
Edit bug report at: http://bugs.php.net/?id=12819&edit=1