CreatePrincipalSupport.php 764 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. declare(strict_types=1);
  3. namespace Sabre\DAVACL\PrincipalBackend;
  4. use Sabre\DAV\MkCol;
  5. /**
  6. * Implement this interface to add support for creating new principals to your
  7. * principal backend.
  8. *
  9. * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
  10. * @author Evert Pot (http://evertpot.com/)
  11. * @license http://sabre.io/license/ Modified BSD License
  12. */
  13. interface CreatePrincipalSupport extends BackendInterface
  14. {
  15. /**
  16. * Creates a new principal.
  17. *
  18. * This method receives a full path for the new principal. The mkCol object
  19. * contains any additional webdav properties specified during the creation
  20. * of the principal.
  21. *
  22. * @param string $path
  23. */
  24. public function createPrincipal($path, MkCol $mkCol);
  25. }