Hello,
still coding under PHP 4.

I have a few apps. There are some recursive methods. As my stuff is coded now, these methods are coded in each application. I would like to group them in one class and make this class the parent class of all the parent classes of my various applications.

Like:
PHP Code:
class MainParent {

    
//share all the methods common to all apps

}

class 
Application1 extends MainParent {

    
//this class is the parent class of all the Application1 classes and contains the methods used by all the Application1 classes.

}

class 
Application2 extends MainParent {

    
//this class is the parent class of all the Application2 classes  and contains the methods used by all the Application2 classes.


I think that I'm good so far.

Now to what refers parent:: in the application subclasses? or $this-> ?

Like in:
PHP Code:
class DoSomething extends Application2 {

    function 
DoSomething(){

        
parent::sharedMethod();

    }

    function 
DoSomethingElse(){

        
$var $this->foo;

    } 


thanks in advance