/** * Finds all objects in a calendar * * @param integer $type * @param integer $limit * @param integer $offset * @throws \OCA\Calendar\BusinessLayer\Exception * @return \OCA\Calendar\IObjectCollection */ public function findAll($type = ObjectType::ALL, $limit = null, $offset = null) { if ($this->isCachingEnabled) { if ($this->calendar->checkUpdate()) { $this->calendar->propagate(); } return $this->cache->findAll($type, $limit, $offset); } else { return $this->api->findAll($type, $limit, $offset); } }