AbstractCalDavManager
🔧 __construct
Constructor
function __construct($baseUrl, $username, $password, $authMethod = 'digest')
{
$this->baseUrl = rtrim($baseUrl, '/');
$this->username = $username;
$this->password = $password;
// Set the authentication method
if ($authMethod === 'digest') {
$this->authMethod = CURLAUTH_DIGEST;
} else if ($authMethod === 'basic') {
$this->authMethod = CURLAUTH_BASIC;
} else {
$this->authMethod = CURLAUTH_ANY;
// ... (truncated)
⚙️ Parameters
- $baseUrl (string) Base URL of the CalDAV server
- $username (string) Username for authentication
- $password (string) Password for authentication
- $authMethod (string) Authentication method ('digest' or 'basic', defaults to 'digest')