Lines Matching refs:node

341             $node = $this->server->tree->getNodeForPath($principal);
342 if ($node instanceof IPrincipal) {
343 foreach ($node->getGroupMembership() as $groupMember) {
438 * @param string|INode $node
441 function getSupportedPrivilegeSet($node) { argument
443 if (is_string($node)) {
444 $node = $this->server->tree->getNodeForPath($node);
448 if ($node instanceof IACL) {
449 $supportedPrivileges = $node->getSupportedPrivilegeSet();
487 if ($node instanceof DAV\ICollection) {
497 if ($node instanceof IACL) {
508 [$node, &$supportedPrivileges]
526 * @param string|INode $node
529 final function getFlatPrivilegeSet($node) { argument
533 'aggregates' => $this->getSupportedPrivilegeSet($node)
587 function getAcl($node) { argument
589 if (is_string($node)) {
590 $node = $this->server->tree->getNodeForPath($node);
592 if (!$node instanceof IACL) {
595 $acl = $node->getACL();
618 function getCurrentUserPrivilegeSet($node) { argument
620 if (is_string($node)) {
621 $node = $this->server->tree->getNodeForPath($node);
624 $acl = $this->getACL($node);
637 $owner = $node->getOwner();
675 $flat = $this->getFlatPrivilegeSet($node);
986 function propFind(DAV\PropFind $propFind, DAV\INode $node) { argument
1011 if ($node instanceof IPrincipal) {
1013 $propFind->handle('{DAV:}alternate-URI-set', function() use ($node) {
1014 return new Href($node->getAlternateUriSet());
1016 $propFind->handle('{DAV:}principal-URL', function() use ($node) {
1017 return new Href($node->getPrincipalUrl() . '/');
1019 $propFind->handle('{DAV:}group-member-set', function() use ($node) {
1020 $members = $node->getGroupMemberSet();
1026 $propFind->handle('{DAV:}group-membership', function() use ($node) {
1027 $members = $node->getGroupMembership();
1033 $propFind->handle('{DAV:}displayname', [$node, 'getDisplayName']);
1052 $propFind->handle('{DAV:}supported-privilege-set', function() use ($node) {
1053 return new Xml\Property\SupportedPrivilegeSet($this->getSupportedPrivilegeSet($node));
1055 … $propFind->handle('{DAV:}current-user-privilege-set', function() use ($node, $propFind, $path) {
1059 $val = $this->getCurrentUserPrivilegeSet($node);
1063 $propFind->handle('{DAV:}acl', function() use ($node, $propFind, $path) {
1068 $acl = $this->getACL($node);
1069 return new Xml\Property\Acl($this->getACL($node));
1077 if ($node instanceof IACL) {
1078 $propFind->handle('{DAV:}owner', function() use ($node) {
1079 return new Href($node->getOwner() . '/');
1106 $node = $this->server->tree->getNodeForPath($path);
1107 if (!($node instanceof IPrincipal)) {
1112 $node->setGroupMemberSet($memberSet);
1182 $node = $this->server->tree->getNodeForPath($path);
1184 if (!$node instanceof IACL) {
1188 $oldAcl = $this->getACL($node);
1190 $supportedPrivileges = $this->getFlatPrivilegeSet($node);
1235 $node->setACL($newAcl);
1398 foreach ($foundProperties as $node) {
1407 if (!array_key_exists($propertyName, $node[200])) continue;
1409 if (!$node[200][$propertyName] instanceof DAV\Xml\Property\Href) {
1413 $childHrefs = $node[200][$propertyName]->getHrefs();
1425 $node[200][$propertyName] = $childProps;
1428 $result[] = new DAV\Xml\Element\Response($node['href'], $node);
1596 function htmlActionsPanel(DAV\INode $node, &$output) { argument
1598 if (!$node instanceof PrincipalCollection)