mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
Initial Release of the calendar plugin
This commit is contained in:
parent
45cc9885fc
commit
7115197a33
561 changed files with 189494 additions and 0 deletions
61
dav/SabreDAV/tests/Sabre/DAVACL/MockPrincipal.php
Normal file
61
dav/SabreDAV/tests/Sabre/DAVACL/MockPrincipal.php
Normal file
|
@ -0,0 +1,61 @@
|
|||
<?php
|
||||
|
||||
class Sabre_DAVACL_MockPrincipal extends Sabre_DAV_Node implements Sabre_DAVACL_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;
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue