View Single Post

  #3 (permalink)  
Old 03-27-2008
Jerry Stuckle
 
Posts: n/a
Default Re: is it possible to determine method that calls other method ?

Pugi! wrote:
> Is it possible to determine method that calls another method ?
> for example:
>
> class A {
> private function One() {
> // do something depending on calling method
> }
>
> public function Two() {
> return $this->One();
> }
>
> public function Three() {
> return $this->One();
> }
> }
>
> Apart from including method (__METHOD__) in function call: $this-
>> One(__METHOD__) ?

>
> Pugi!
>


No, but why would you want to? If you want to do something different,
create a different method.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Reply With Quote