public function GetVotesForUser($oUserId, $iPerPage) { if (is_object($oUserId)) { $nUserId = $oUserId->GetId(); } else { $nUserId = intval($oUserId); } $data = $this->oMapper->GetVotesForUserId($nUserId, $iPerPage); return $data; }