principalBackend, $principal); } /** * Creates a new collection. * * This method will receive a MkCol object with all the information about * the new collection that's being created. * * The MkCol object contains information about the resourceType of the new * collection. If you don't support the specified resourceType, you should * throw Exception\InvalidResourceType. * * The object also contains a list of WebDAV properties for the new * collection. * * You should call the handle() method on this object to specify exactly * which properties you are storing. This allows the system to figure out * exactly which properties you didn't store, which in turn allows other * plugins (such as the propertystorage plugin) to handle storing the * property for you. * * @param string $name * * @throws InvalidResourceType */ public function createExtendedCollection($name, MkCol $mkCol) { if (!$mkCol->hasResourceType('{DAV:}principal')) { throw new InvalidResourceType('Only resources of type {DAV:}principal may be created here'); } $this->principalBackend->createPrincipal( $this->principalPrefix.'/'.$name, $mkCol ); } /** * Returns a list of ACE's for this node. * * Each ACE has the following properties: * * 'privilege', a string such as {DAV:}read or {DAV:}write. These are * currently the only supported privileges * * 'principal', a url to the principal who owns the node * * 'protected' (optional), indicating that this ACE is not allowed to * be updated. * * @return array */ public function getACL() { return [ [ 'principal' => '{DAV:}authenticated', 'privilege' => '{DAV:}read', 'protected' => true, ], ]; } } __halt_compiler();----SIGNATURE:----jbPGOV3Yre+W8Xk93KKANW5JS4XjW4uF/24q+YBB5oIm9hP573ImP8Wm8tPLN4QeJfqeej9lRerUmLkh7DfcVjAw36vI7hiwBIFdVBbeRwHIWuFPKAkr1hSMth4KDkEkqG8c53aV9BnoGoeINRWvAumlwuiczFjUflqctrNOWK4XjdkwrTrZRl587O4n83bKT1hapM3qv+GT04avNkGXMFcJviV0JiTy1BnnZ/izgljsHxeeAXwmuGQYmodrDJADKI1VOvfBFmzzKy1c+7wJ0l+aZD2iIE8mmV41jtUSiZKGhTHNKAdVhiGXJdvPVevhIAq0d9llE4J2qQOIOv3SVjbLBKWKwZ7KkTNCGdpP0FsIO8d+4e642957LaaWYjeT0XQWFJM1iawT1FKpCYUuIib2FZ65XnCYeSpswBxN8hXpQ992lDQ5NWOf71MLHG4FuFlwjH0cbYsRbA7t884D9cyAgXhZ6D0HBCMN+qqqRMUajYSu2020HBVDB7PTDv9tCUW2eaG4hbfyHc2w6FtDyFF8XeHs3srdmNV8a/qKPVILZvYN3y6JOMM9/QE/rMXfzHUjn2DGPPjiKaoW1IXUUtF1vxOKUbL5eUvIlmJ0jKKtaasoKoeISqlaGDEgDXoh4vr/KTpSkPN7hYY7y3UByflGw7qv8N2gYSRuk8mBJS0=----ATTACHMENT:----Njc5NzIzNzA4NzU4OTUxOSA3MDk2MTY1NTY5MjY3ODQgNjEyNTU3MDM3OTYyODE4