function getEntries(&$caldates, &$params, &$matches) { $m = array(); $b = array(); $this->xparams = $params; $this->prefix = $params->prefix; if ($this->xparams->get('joomleague_use_favteams', 0) == 1) { $this->favteams = JoomleagueConnector::getFavs(); } if ($this->xparams->get('jlmatches', 0) == 1) { $rows = JoomleagueConnector::getMatches($caldates); $m = JoomleagueConnector::formatMatches($rows, $matches); } if ($this->xparams->get('jlbirthdays', 1) == 1) { $birthdays = JoomleagueConnector::getBirthdays($caldates, $this->params, $this->matches); $b = JoomleagueConnector::formatBirthdays($birthdays, $matches, $caldates); } return array_merge($m, $b); }