/** * This method is responsible for mapping the ZFDemo's authentication ids to forum module authorization ids. * Each module can maintain its own set of ids used for authorization, * thus allowing integration of diverse modules. */ public static function authenticationId2authorizationId($authenticationId) { self::loadModels(); // getByUsername returns null if lookup fails if (self::$_user = ZFDemoModel_Users::getByUsername($authenticationId['username'])) { self::$_username = self::$_user->username; self::$_authorizationId = self::$_user->user_id; } }