On Friday, February 14, 2014 5:13:16 PM UTC-5, Colombia Hosting wrote:
>
> 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?
>

There's many parts within sabredav that asks for properties about a node.. 
these will all call one of the Sabre\DAV\Server::getProperties* method, and 
these call the beforeGetProperties / afterGetProperties methods.
 

>
> How can I receive the INode extended object?
>

If you extended the node in the tree, you will receive that 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?
>

Casting doesn't work like that in PHP.

Take a look at how you create Sabre\DAV\Server in your main 'server.php' 
file. This is where the tree gets created, and this is where you have 
control over which objects are used.
You may not be able to created your NodeVersion object directly, because 
you only create Directory / Collection objects there.

So this may mean that you also need to override your Collection objects, so 
they create the correct objects in getChildren / getChild.

Hope that makes sense, it's all in the pamphlet:

http://sabredav.org/dav/virtual-filesystems/

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