CalDavInterface

🔧 __construct

Initialize the CalDAV client
function __construct(string $baseUrl, string $username, string $password); /** * Get all calendars for the authenticated user * @return array List of calendars * @throws \CalDav\Exception\CalDavException */ public function getCalendars(): array; /** * Check if the connection to the CalDAV server is valid * @return bool * @throws \CalDav\Exception\ConnectionException */ public function checkConnection(): bool; /** * Get the base URL of the CalDAV server * @return string */ public function getBaseUrl(): string; /** * Get the username of the authenticated user * @return string */ public function getUsername(): string; }

âš™ī¸ Parameters


🔧 getCalendars

Get all calendars for the authenticated user
function getCalendars(): array; /** * Check if the connection to the CalDAV server is valid * @return bool * @throws \CalDav\Exception\ConnectionException */ public function checkConnection(): bool; /** * Get the base URL of the CalDAV server * @return string */ public function getBaseUrl(): string; /** * Get the username of the authenticated user * @return string */ public function getUsername(): string; }

â†Šī¸ Returns

(array) List of calendars

âš ī¸ Throws


🔧 checkConnection

Check if the connection to the CalDAV server is valid
function checkConnection(): bool; /** * Get the base URL of the CalDAV server * @return string */ public function getBaseUrl(): string; /** * Get the username of the authenticated user * @return string */ public function getUsername(): string; }

â†Šī¸ Returns

(bool)

âš ī¸ Throws


🔧 getBaseUrl

Get the base URL of the CalDAV server
function getBaseUrl(): string; /** * Get the username of the authenticated user * @return string */ public function getUsername(): string; }

â†Šī¸ Returns

(string)

🔧 getUsername

Get the username of the authenticated user
function getUsername(): string; }

â†Šī¸ Returns

(string)