/** * Get interests for reviewer interests autocomplete. * @param $args array * @param $request PKPRequest * @return JSONMessage JSON object */ function getInterests($args, $request) { // Get the input text used to filter on $filter = $request->getUserVar('term'); import('lib.pkp.classes.user.InterestManager'); $interestManager = new InterestManager(); $interests = $interestManager->getAllInterests($filter); import('lib.pkp.classes.core.JSONMessage'); return new JSONMessage(true, $interests); }