/**
  * Constructor
  *
  * This constructor needs both a principal and a carddav backend.
  *
  * By default this class will show a list of addressbook collections for
  * principals in the 'principals' collection. If your main principals are
  * actually located in a different path, use the $principalPrefix argument
  * to override this.
  *
  * @param DAVACL\PrincipalBackend\BackendInterface $principalBackend
  * @param Backend\BackendInterface $carddavBackend
  * @param string $principalPrefix
  */
 public function __construct(DAVACL\PrincipalBackend\BackendInterface $principalBackend, Backend\BackendInterface $carddavBackend, $principalPrefix = 'principals')
 {
     $this->carddavBackend = $carddavBackend;
     parent::__construct($principalBackend, $principalPrefix);
 }
 /**
  * Constructor
  *
  * This constructor needs both an authentication and a caldav backend.
  *
  * By default this class will show a list of calendar collections for
  * principals in the 'principals' collection. If your main principals are
  * actually located in a different path, use the $principalPrefix argument
  * to override this.
  *
  * @param PrincipalBackend\BackendInterface $principalBackend
  * @param Backend\BackendInterface $caldavBackend
  * @param string $principalPrefix
  */
 function __construct(PrincipalBackend\BackendInterface $principalBackend, Backend\BackendInterface $caldavBackend, $principalPrefix = 'principals')
 {
     parent::__construct($principalBackend, $principalPrefix);
     $this->caldavBackend = $caldavBackend;
 }
Beispiel #3
0
 /**
  * Creates the home collection.
  *
  * @param BackendInterface $principalBackend
  * @param string $storagePath Where the actual files are stored.
  * @param string $principalPrefix list of principals to iterate.
  */
 function __construct(BackendInterface $principalBackend, $storagePath, $principalPrefix = 'principals')
 {
     parent::__construct($principalBackend, $principalPrefix);
     $this->storagePath = $storagePath;
 }
 /**
  * Constructor
  *
  * This constructor needs both a principal and an accounts backend.
  *
  *
  * @param Sabre\DAVACL\PrincipalBackend\BackendInterface $principalBackend
  * @param SabreAccounts\DAV\Accounts\Backend\BackendInterface $accountsBackend
  * @param string $principalPrefix
  */
 public function __construct(BackendInterface $principalBackend, PDO $accountsBackend, $principalPrefix = 'accounts')
 {
     parent::__construct($principalBackend, $principalPrefix);
     $this->accountsBackend = $accountsBackend;
 }