#30423 [Opn->Csd]: get_class(self) for static methods

From: Date: Wed, 13 Oct 2004 21:09:16 +0000
Subject: #30423 [Opn->Csd]: get_class(self) for static methods
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-67554@lists.php.net to get a copy of this message
ID: 30423 Updated by: helly@php.net Reported By: auroraeosrose at hotmail dot com -Status: Open +Status: Closed Bug Type: Feature/Change Request -Operating System: Irrelevant +Operating System: * -PHP Version: 5CVS-2004-10-13 (dev) +PHP Version: 5.* New Comment: Simply use get_class() Previous Comments: ------------------------------------------------------------------------ [2004-10-13 20:18:43] auroraeosrose at hotmail dot com Description: ------------ When using parent - child classes you sometimes need to get the name of the child, not the parent FROM the parent class. In a regular object instance you can do get_class($this); However in static methods, you cannot. I'd really like a get_class(self); so that you can get the same functionality in a static method. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30423&edit=1

« previous php.bugs (#67554) next »