public static function getUserStats($userId) { static $users; if (empty($users[$userId])) { $users[$userId] = sprintf('(%s: %d, %s: %d)', CMA_Labels::getLocalized('Questions'), CMA_Thread::getCountQuestionsByUser($userId), CMA_Labels::getLocalized('Answers'), CMA_Thread::getCountAnswersByUser($userId)); } return $users[$userId]; }