13 $lock->owner =
'hello';
14 $lock->token =
'blabla';
16 $lock->created = strtotime(
'2015-03-25 19:21:00');
23 $xml = $this->
write([
'{DAV:}root' => $prop]);
25 $this->assertXmlStringEqualsXmlString(
26 '<?xml version="1.0"?> 27 <d:root xmlns:d="DAV:"> 29 <d:lockscope><d:exclusive /></d:lockscope> 30 <d:locktype><d:write /></d:locktype> 35 <d:timeout>Second-600</d:timeout> 37 <d:href>opaquelocktoken:blabla</d:href> 39 <d:owner>hello</d:owner> 51 $lock->owner =
'hello';
52 $lock->token =
'blabla';
54 $lock->created = strtotime(
'2015-03-25 19:21:00');
61 $xml = $this->
write([
'{DAV:}root' => $prop]);
63 $this->assertXmlStringEqualsXmlString(
64 '<?xml version="1.0"?> 65 <d:root xmlns:d="DAV:"> 67 <d:lockscope><d:shared /></d:lockscope> 68 <d:locktype><d:write /></d:locktype> 73 <d:timeout>Second-600</d:timeout> 75 <d:href>opaquelocktoken:blabla</d:href> 77 <d:owner>hello</d:owner>
const EXCLUSIVE
An exclusive lock.
Represents {DAV:}lockdiscovery property.
const SHARED
A shared lock.