ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
MkCol.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\DAV;
4
23class MkCol extends PropPatch {
24
30 protected $resourceType;
31
38 function __construct(array $resourceType, array $mutations) {
39
40 $this->resourceType = $resourceType;
41 parent::__construct($mutations);
42
43 }
44
50 function getResourceType() {
51
53
54 }
55
67
68 return count(array_diff((array)$resourceType, $this->resourceType)) === 0;
69
70 }
71
72}
An exception for terminatinating execution or to throw for unit testing.
This class represents a MKCOL operation.
Definition: MkCol.php:23
getResourceType()
Returns the resourcetype of the new collection.
Definition: MkCol.php:50
hasResourceType($resourceType)
Returns true or false if the MKCOL operation has at least the specified resource type.
Definition: MkCol.php:66
__construct(array $resourceType, array $mutations)
Creates the MKCOL object.
Definition: MkCol.php:38
This class represents a set of properties that are going to be updated.
Definition: PropPatch.php:20