Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1841932
MockPrincipal.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
1 KB
Subscribers
None
MockPrincipal.php
View Options
<?php
namespace
Sabre\DAVACL
;
use
Sabre\DAV
;
use
Sabre\HTTP
;
class
MockPrincipal
extends
DAV\Node
implements
IPrincipal
{
public
$name
;
public
$principalUrl
;
public
$groupMembership
=
array
();
public
$groupMemberSet
=
array
();
function
__construct
(
$name
,
$principalUrl
,
array
$groupMembership
=
array
(),
array
$groupMemberSet
=
array
())
{
$this
->
name
=
$name
;
$this
->
principalUrl
=
$principalUrl
;
$this
->
groupMembership
=
$groupMembership
;
$this
->
groupMemberSet
=
$groupMemberSet
;
}
function
getName
()
{
return
$this
->
name
;
}
function
getDisplayName
()
{
return
$this
->
getName
();
}
function
getAlternateUriSet
()
{
return
array
();
}
function
getPrincipalUrl
()
{
return
$this
->
principalUrl
;
}
function
getGroupMemberSet
()
{
return
$this
->
groupMemberSet
;
}
function
getGroupMemberShip
()
{
return
$this
->
groupMembership
;
}
function
setGroupMemberSet
(
array
$groupMemberSet
)
{
$this
->
groupMemberSet
=
$groupMemberSet
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jan 7, 9:00 PM (8 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
906344
Default Alt Text
MockPrincipal.php (1 KB)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment