1*a1a3b679SAndreas Boehler<?php 2*a1a3b679SAndreas Boehler 3*a1a3b679SAndreas Boehlernamespace Sabre\DAV; 4*a1a3b679SAndreas Boehler 5*a1a3b679SAndreas Boehler/** 6*a1a3b679SAndreas Boehler * IProperties interface 7*a1a3b679SAndreas Boehler * 8*a1a3b679SAndreas Boehler * Implement this interface to support custom WebDAV properties requested and sent from clients. 9*a1a3b679SAndreas Boehler * 10*a1a3b679SAndreas Boehler * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/). 11*a1a3b679SAndreas Boehler * @author Evert Pot (http://evertpot.com/) 12*a1a3b679SAndreas Boehler * @license http://sabre.io/license/ Modified BSD License 13*a1a3b679SAndreas Boehler */ 14*a1a3b679SAndreas Boehlerinterface IProperties extends INode { 15*a1a3b679SAndreas Boehler 16*a1a3b679SAndreas Boehler /** 17*a1a3b679SAndreas Boehler * Updates properties on this node. 18*a1a3b679SAndreas Boehler * 19*a1a3b679SAndreas Boehler * This method received a PropPatch object, which contains all the 20*a1a3b679SAndreas Boehler * information about the update. 21*a1a3b679SAndreas Boehler * 22*a1a3b679SAndreas Boehler * To update specific properties, call the 'handle' method on this object. 23*a1a3b679SAndreas Boehler * Read the PropPatch documentation for more information. 24*a1a3b679SAndreas Boehler * 25*a1a3b679SAndreas Boehler * @param PropPatch $propPatch 26*a1a3b679SAndreas Boehler * @return void 27*a1a3b679SAndreas Boehler */ 28*a1a3b679SAndreas Boehler function propPatch(PropPatch $propPatch); 29*a1a3b679SAndreas Boehler 30*a1a3b679SAndreas Boehler /** 31*a1a3b679SAndreas Boehler * Returns a list of properties for this nodes. 32*a1a3b679SAndreas Boehler * 33*a1a3b679SAndreas Boehler * The properties list is a list of propertynames the client requested, 34*a1a3b679SAndreas Boehler * encoded in clark-notation {xmlnamespace}tagname 35*a1a3b679SAndreas Boehler * 36*a1a3b679SAndreas Boehler * If the array is empty, it means 'all properties' were requested. 37*a1a3b679SAndreas Boehler * 38*a1a3b679SAndreas Boehler * Note that it's fine to liberally give properties back, instead of 39*a1a3b679SAndreas Boehler * conforming to the list of requested properties. 40*a1a3b679SAndreas Boehler * The Server class will filter out the extra. 41*a1a3b679SAndreas Boehler * 42*a1a3b679SAndreas Boehler * @param array $properties 43*a1a3b679SAndreas Boehler * @return array 44*a1a3b679SAndreas Boehler */ 45*a1a3b679SAndreas Boehler function getProperties($properties); 46*a1a3b679SAndreas Boehler 47*a1a3b679SAndreas Boehler} 48