title: PHP Classes: get access to the calling instance from the called method
body: <p>sorry for that weird subject but I don't know how to express it in an other way.</p>
  
  <p>I'm trying to access a method from a calling class. Like in this example:</p>
  
  <pre>
  class normalClass {
       public function someMethod() { 
            [...]
            //this method shall access the doSomething method from superClass
       }
  }
  
  class superClass {
       public function __construct() {
            $inst = new normalClass;
            $inst->someMethod();
       }
       public function doSomething() {
            //this method shall be be accessed by domeMethod form normalClass
      }
  }
  </pre>
  
  <p>Both classes are not related by inheritance and I don't want to set the function to static.</p>
  
  <p>Is there any way to achieve that?</p>
  
  <p>Thanks for your help!</p>