Lines Matching refs:node

79         $node = $this->server->tree->getNodeForPath($path, 0);
81 if (!$node instanceof IFile) return;
83 $body = $node->get();
508 $node = $this->server->tree->getNodeForPath($path);
511 … if (!($node instanceof IFile)) throw new Exception\Conflict('PUT is not allowed on non-files.');
770 $node = $this->server->tree->getNodeForPath($path);
772 if ($node instanceof IProperties) {
773 $node->propPatch($propPatch);
784 * @param INode $node
787 function propFind(PropFind $propFind, INode $node) { argument
789 $propFind->handle('{DAV:}getlastmodified', function() use ($node) {
790 $lm = $node->getLastModified();
796 if ($node instanceof IFile) {
797 $propFind->handle('{DAV:}getcontentlength', [$node, 'getSize']);
798 $propFind->handle('{DAV:}getetag', [$node, 'getETag']);
799 $propFind->handle('{DAV:}getcontenttype', [$node, 'getContentType']);
802 if ($node instanceof IQuota) {
804 $propFind->handle('{DAV:}quota-used-bytes', function() use (&$quotaInfo, $node) {
805 $quotaInfo = $node->getQuotaInfo();
808 $propFind->handle('{DAV:}quota-available-bytes', function() use (&$quotaInfo, $node) {
810 $quotaInfo = $node->getQuotaInfo();
823 $propFind->handle('{DAV:}resourcetype', function() use ($node) {
824 return new Xml\Property\ResourceType($this->server->getResourceTypeForNode($node));
841 * @param INode $node
844 function propFindNode(PropFind $propFind, INode $node) { argument
846 if ($node instanceof IProperties && $propertyNames = $propFind->get404Properties()) {
848 $nodeProperties = $node->getProperties($propertyNames);
866 * @param INode $node
869 function propFindLate(PropFind $propFind, INode $node) { argument