PHP - Object Oriented Practices and Inheritance
<p>This is the basic class design</p>

<pre><code>class CustomModule {

    public __construct() {  }

    //Run me first automaticly  
    public function exec($str) {  } 

}

class Randomizer extends CustomModule {

    public __construct() {  }

    //Call me
    public function exec($str) {  } 

}
</code></pre>

<p>As I am designing a plugin/module system for extern developers I need the <code>CustomModule->exec()</code> to run first, I do not want to leave it up to the devs to have to call <code> base->exec($str)</code>.</p>

<p>I want <code>CustomModule::exec()</code> called automaticly before <code>Randomizer::exec()</code> is called without having to put code in <code>Randomizer::exec()</code>. Is This Possible perhaps with magic function?</p>
