function getEntries($caldates, $params, &$matches) { if (!JEventsConnector::_checkJEvents()) { return; } $year = substr($caldates['start'], 0, 4); $month = substr($caldates['start'], 5, 1) == '0' ? substr($caldates['start'], 6, 1) : substr($caldates['start'], 5, 2); $this->xparams = $params; /** * Gets calendar data for use in main calendar and module * * @param int $year * @param int $month * @param int $day * @param boolean $short - use true for module which only requires knowledge of if dat has an event * @param boolean $veryshort - use true for module which only requires dates and nothing about events * @return array - calendar data array */ $data = $this->jevent->getCalendarData($year, $month, 1); $formatted = JEventsConnector::formatEntries($data['dates'], $matches); return $formatted; }