How to call static func by passing $_GET params?
<p>i have got a static function> which is called 
regenerateThumbnailsCron()</p>

<p>And I would like to execute this function by GET params, for example></p>

<pre><code>if($_GET["pass"]=="password")
self::regenerateThumbnailsCron();
</code></pre>

<p>But if I tryied to call this function in constructor>
class AdminImages extends AdminTab
...</p>

<pre><code> public function __construct()
 {
    if($_GET["pass"]=="password")
    self::regenerateThumbnailsCron();
}
</code></pre>

<p>I cannot execute this function.
Is any way, how to call this function before __construct to correctly execute?</p>

<p>Thanks very much for any advice.</p>

<p>EDIT></p>

<p>I tried also with public function></p>

<pre><code>&lt;?php
include 'AdminImages.php';

$images = new AdminImages();
$images-&gt;regenerateThumbnailsCron();

?&gt;
</code></pre>

<p>But i got error>
Fatal error: Class 'AdminTab' not found</p>
