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