Re: class name in static functions
| From: | Andrey Hristov | Date: | Tue, 25 Sep 2001 11:05:57 +0000 |
| Subject: | Re: class name in static functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68681@lists.php.net to get a copy of this message | ||
Set internal member variable $class_name='CSomeClass';
The call is for example
print CSomeClass::class_name;
I'm not sure whether this works 100% but I think it works.
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
----- Original Message -----
From: "James Gregory" <james@unixpac.com.au>
To: <php-general@lists.php.net>
Sent: Wednesday, September 26, 2001 3:56 AM
Subject: [PHP] class name in static functions
> HI!!!
>
> Is it possible to get the name of the class from a static member
> function for which no object has been instantiated?
>
> THANKS!
>
> James.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>