BUG !!!
sammy found a bug where we forgot to check a var to see if it is an
object before we "get_class" ... both the Node class and Property
class were updated ...
BTW - we are working on the "clone" functionality:
http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/Workspace.html#clone(java.lang.String,
java.lang.String, java.lang.String, boolean)
here are some notes so far:
1) since PHP already has a "clone" function, it will be named "_clone"
2) sammy was right, there is no HARD reason why you shouldn't be able
to copy/clone a locked node - so that check will be turned off
also, following the JCR specs, we will also be implementing an
"isDeep" parameter on both the "lock" and "unlock" methods in the Node
class ... meaning:
-- default will be false
-- if true, all descendant nodes will be locked/unlocked
that's it for now