/** * Search for a user account and return his data. * * @param int $memberId The member's id * @param string $email The user email * @param int $accountType The account type * * @return array $foundUser */ public static function isAuthenticated($memberId, $email, $accountType) { $db = Zend_Registry::get("db"); $profile = new MemberProfile(); $foundUser = $profile->findMembers(array('member_id' => $memberId, 'email' => $email)); print_r($foundUser); return $foundUser; }