/** * @param $username * @param $page */ public function ajaxMostTypePrevious($username, $page) { $arrayRawGamesOwned = BGGData::getGamesOwned(); $arrayGamesDetails = BGGData::getDetailOwned($arrayRawGamesOwned); Stats::getCollectionArrays($arrayRawGamesOwned); Stats::getOwnedRelatedArrays($arrayGamesDetails); $mostType = Graphs::getMostType($page); echo json_encode($mostType); }