public function canRead($userId) { if ($this->canRead !== null) { return $this->canRead; } $this->canRead = \CCalendarEvent::canView($this->entityId, $userId); return $this->canRead; }