platal =& $platal; } function handlers() { die("implement me"); } function make_hook($fun, $auth, $perms = '', $type = SKINNED) { return array('hook' => array($this, 'handler_'.$fun), 'auth' => $auth, 'perms' => $perms, 'type' => $type); } /* static functions */ function factory(&$platal, $modname) { $mod_path = dirname(__FILE__).'/../modules/'.strtolower($modname).'.php'; $class = ucfirst($modname).'Module'; require_once $mod_path; return new $class($site); } } ?>