array($this, 'handler_'.$fun), 'auth' => $auth, 'perms' => $perms, 'type' => $type); } /* static functions */ function factory($modname) { $mod_path = dirname(__FILE__).'/../modules/'.strtolower($modname).'.php'; $class = ucfirst($modname).'Module'; require_once $mod_path; return new $class(); } } ?>