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
$baseUrl(string) The base URL of the CalDAV server
$username(string) Username for authentication
$password(string) Password for authentication
đ§ 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
\CalDav\Exception\CalDavException:
đ§ 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
\CalDav\Exception\ConnectionException:
đ§ 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;
}