Re: function knows where call came from?
| From: | php3 at developersdesk dot com | Date: | Thu, 29 Mar 2001 03:26:04 +0000 |
| Subject: | Re: function knows where call came from? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-45996@lists.php.net to get a copy of this message | ||
Addressed to: "Reuben D Budiardja" <reubendb@goshen.edu>
php-general@lists.php.net
** Reply to note from "Reuben D Budiardja" <reubendb@goshen.edu> Wed, 28 Mar 2001
12:44:55 -0500
>
> Yes, that would be really cool. I my self has tried to find a way to do
> this, and throw this question to the list sometimes ago... no repond.
>
> What would be great, if we can do this, is that we can somehow create a
> pseudo-private method for classes (since php OO does not have that), and
> limit only a certain file/page can call that pseudo-private method, by
> checking which page call that method.
>
> Please let me know if you find any further information on this. Thanks in
> advance
Having a function able to identify where it was called from has been
discussed on the developers list several times. The result is that it
would slow down every function too much, even when the feature was not
used. You will not be seeing this feature in PHP, I am afraid.
Execution speed is very important to the developers. (And I agree!)
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com