Server IP : 184.154.167.98 / Your IP : 18.220.42.22 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/public_html/contratos/3rdparty/sabre/dav/lib/DAV/ |
Upload File : |
<?php namespace Sabre\DAV; /** * This class represents a MKCOL operation. * * MKCOL creates a new collection. MKCOL comes in two flavours: * * 1. MKCOL with no body, signifies the creation of a simple collection. * 2. MKCOL with a request body. This can create a collection with a specific * resource type, and a set of properties that should be set on the new * collection. This can be used to create caldav calendars, carddav address * books, etc. * * Property updates must always be atomic. This means that a property update * must either completely succeed, or completely fail. * * @copyright Copyright (C) fruux GmbH (https://fruux.com/) * @author Evert Pot (http://evertpot.com/) * @license http://sabre.io/license/ Modified BSD License */ class MkCol extends PropPatch { /** * A list of resource-types in clark-notation. * * @var array */ protected $resourceType; /** * Creates the MKCOL object. * * @param string[] $resourceType List of resourcetype values. * @param array $mutations List of new properties values. */ function __construct(array $resourceType, array $mutations) { $this->resourceType = $resourceType; parent::__construct($mutations); } /** * Returns the resourcetype of the new collection. * * @return string[] */ function getResourceType() { return $this->resourceType; } /** * Returns true or false if the MKCOL operation has at least the specified * resource type. * * If the resourcetype is specified as an array, all resourcetypes are * checked. * * @param string|string[] $resourceType * @return bool */ function hasResourceType($resourceType) { return count(array_diff((array)$resourceType, $this->resourceType)) === 0; } }