title: Execute method when other method is called
body: <p>Is there any way in PHP how to dynamically call a method of one class when method of another class is called?
  An example:
  call method </p>
  
  <pre><code>User::deleteUser('user_id');
  </code></pre>
  
  <p>But before exetucing this method i would like to prepend call for method:</p>
  
  <pre><code>Archive::saveRecord('user_id')
  </code></pre>
  
  <p>I need to have it dynamic as I want to hook it to more methods which are deleting data from tables. The class and method names will be provided in the list available in class Archive.
  It is more like an archiving plugin which can be also turned off.</p>