how do i check if a method has already been called?
<p>I have a class that loads certain parts of my page. What I want to do is this</p>

<pre><code>index.php

$obj-&gt;load('admin');
</code></pre>

<p>In my class in the constructor I have a check to see if the URI contains the segment <code>/admin/</code> and if it does then it auto loads the admin page:</p>

<p><code>$this-&gt;load('admin');</code></p>

<p>now both work fine, I just realized that if I have both entries in my project then it will load the <code>admin</code> initialization twice.</p>

<p>Is there a way for my to check if the <code>load()</code> method has already been called and if the parameter is <code>==</code> to <code>admin</code>?</p>
