Re: Access to Node Path

2014-02-16 Thread Colombia Hosting
I'm just extending the Sabre_DAV_ServerPlugin and there in 
the beforeGetProperties I need to get the path of the node.

The problem is that the path is protected.

Now you are saying that to get access to it, I have to extend the node, the 
server and the collections? jus to get access to a member that is there?

I don't want to do anything more that get the path. Extend all this is a 
lot of work, there is not an easy way to just get it?

Thanks,

-- 
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.


Re: Access to Node Path

2014-02-14 Thread Colombia Hosting
Evert,

Thank you so much for your great response.

But now I have other question.

I'm not who call the beforeGetProperties method, it's called by the 
broadcast event of the server, right?

How can I receive the INode extended object?

Suppose I extend the INode with a class called NodeVersion, and it has the 
get method of the path I need. Where should I create NodeVersion object? Or 
should I cast the INode to NodeVersion somewhere?

Thanks,

-- 
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.


Best way to build the PROPFIND response

2014-02-14 Thread Colombia Hosting
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:


 
   
 file123.txt.v21331224
 32423432432432
   
   
 file123.txt.v21331224
 32423432432432
   
  



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?

Thanks for your help!

-- 
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.


Access to Node Path

2014-02-14 Thread Colombia Hosting
Hello,

I'm writing a plugin that will add some properties to the PROPFIND method.

But I need to get the node path to work with it into 
the beforeGetProperties event.

The problem is that the INode has the path member protected, and I can't 
see any public method to get it.

How can I get the path into the beforeGetProperties?

public function beforeGetProperties($uri, DAV\INode $node, &
$requestedProperties, &$returnedProperties);

Thanks!

-- 
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.


Versioning

2014-01-31 Thread Colombia Hosting
Hello,

Is the versioning supported in SabreDAV, how can I get a list of versions 
of a determinate file?

Thanks,

Jose David Bravo

-- 
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.