예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 /**
  * 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
  */
 public function __construct(PrincipalBackend\BackendInterface $principalBackend, Backend\BackendInterface $caldavBackend, $principalPrefix = 'principals')
 {
     parent::__construct($principalBackend, $principalPrefix);
     $this->caldavBackend = $caldavBackend;
 }