IPrincipal
IPrincipal interface.
Implement this interface to define your own principals
- Full name:
\Sabre\DAVACL\IPrincipal
- Parent interfaces:
\Sabre\DAV\INode
Methods
getAlternateUriSet
Returns a list of alternative urls for a principal.
This can for example be an email address, or ldap url.
getPrincipalUrl
Returns the full principal url.
getGroupMemberSet
Returns the list of group members.
If this principal is a group, this function should return all member principal uri's for the group.
getGroupMembership
Returns the list of groups this principal is member of.
If this principal is a member of a (list of) groups, this function should return a list of principal uri's for it's members.
setGroupMemberSet
Sets a list of group members.
If this principal is a group, this method sets all the group members. The list of members is always overwritten, never appended to.
This method should throw an exception if the members could not be set.
Parameters:
Parameter | Type | Description |
---|---|---|
$principals |
array |
getDisplayName
Returns the displayname.
This should be a human readable name for the principal. If none is available, return the nodename.
Inherited methods
delete
Deleted the current node.
getName
Returns the name of the node.
This is used to generate the url.
setName
Renames the node.
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string | The new name |
getLastModified
Returns the last modification time, as a unix timestamp. Return null if the information is not available.
Automatically generated on 2025-03-18