On Friday, February 14, 2014 10:32:23 AM UTC-5, Colombia Hosting wrote:
>
> Hi,
>
> I want to add some properties to the PROPFIND response, and I'm doing it 
> using a plugin with the beforeGetProperties method.
>
> The properties that I want to add should have this syntax:
>
> <d:prop>
>  <d:versions>
>    <d:version>
>          <d:name>file123.txt.v21331224</d:name>
>          <d:time>32423432432432</d:time>
>    </d:version>
>    <d:version>
>          <d:name>file123.txt.v21331224</d:name>
>          <d:time>32423432432432</d:time>
>    </d:version>
>   <d:versions>
> </d:prop>
>
>
> There are many ways to handle the properties, 
> using: Sabre_DAV_Property_HrefList, Sabre_DAV_Property_ResponseList 
> and Sabre_DAV_Property_SupportedReportSet
>
> But witch one is the best to build the XML I need? and how to create it?
>

You shouldn't use any of those =)

All those classes have 1 thing in common. They extend Sabre\DAV\Property.

You should also implement Sabre\DAV\Property and create your own serialize 
method.

There are many examples of other classes that do it, but you can find more 
in these directories:

Sabre\DAV\Property
Sabre\DAVACL\Property
Sabre\CalDAV\Property
Sabre\CardDAV\Property

Evert

-- 
You received this message because you are subscribed to the Google Groups 
"SabreDAV Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sabredav-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to sabredav-discuss@googlegroups.com.
Visit this group at http://groups.google.com/group/sabredav-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to