4 * ResponseList property
6 * This class represents multiple {DAV:}response XML elements.
7 * This is used by the Server class to encode items within a multistatus
12 * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
13 * @author Evert Pot (http://www.rooftopsolutions.nl/)
14 * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
16 class Sabre_DAV_Property_ResponseList extends Sabre_DAV_Property {
26 * The only valid argument is a list of Sabre_DAV_Property_Response
29 * @param array $responses;
31 public function __construct($responses) {
33 foreach($responses as $response) {
34 if (!($response instanceof Sabre_DAV_Property_Response)) {
35 throw new InvalidArgumentException('You must pass an array of Sabre_DAV_Property_Response objects');
38 $this->responses = $responses;
45 * @param Sabre_DAV_Server $server
46 * @param DOMElement $dom
49 public function serialize(Sabre_DAV_Server $server,DOMElement $dom) {
51 foreach($this->responses as $response) {
52 $response->serialize($server, $dom);