diff --git a/apps/dav/lib/SystemTag/SystemTagMappingNode.php b/apps/dav/lib/SystemTag/SystemTagMappingNode.php index 96180d0e0d6f5..68e52ea9514fd 100644 --- a/apps/dav/lib/SystemTag/SystemTagMappingNode.php +++ b/apps/dav/lib/SystemTag/SystemTagMappingNode.php @@ -37,15 +37,30 @@ * Mapping node for system tag to object id */ class SystemTagMappingNode implements \Sabre\DAV\INode { + private ISystemTag $tag; + private string $objectId; + private string $objectType; + private IUser $user; + private ISystemTagManager $tagManager; + private ISystemTagObjectMapper $tagMapper; + private \Closure $childWriteAccessFunction; + public function __construct( - private ISystemTag $tag, - private string $objectId, - private string $objectType, - private IUser $user, - private ISystemTagManager $tagManager, - private ISystemTagObjectMapper $tagMapper, - private \Closure $childWriteAccessFunction, + ISystemTag $tag, + string $objectId, + string $objectType, + IUser $user, + ISystemTagManager $tagManager, + ISystemTagObjectMapper $tagMapper, + \Closure $childWriteAccessFunction ) { + $this->tag = $tag; + $this->objectId = $objectId; + $this->objectType = $objectType; + $this->user = $user; + $this->tagManager = $tagManager; + $this->tagMapper = $tagMapper; + $this->childWriteAccessFunction = $childWriteAccessFunction; } /** diff --git a/apps/dav/lib/SystemTag/SystemTagsObjectMappingCollection.php b/apps/dav/lib/SystemTag/SystemTagsObjectMappingCollection.php index 38b2c3b2f824d..fba4ac64fb617 100644 --- a/apps/dav/lib/SystemTag/SystemTagsObjectMappingCollection.php +++ b/apps/dav/lib/SystemTag/SystemTagsObjectMappingCollection.php @@ -40,14 +40,27 @@ * Collection containing tags by object id */ class SystemTagsObjectMappingCollection implements ICollection { + private string $objectId; + private string $objectType; + private IUser $user; + private ISystemTagManager $tagManager; + private ISystemTagObjectMapper $tagMapper; + protected \Closure $childWriteAccessFunction; + public function __construct( - private string $objectId, - private string $objectType, - private IUser $user, - private ISystemTagManager $tagManager, - private ISystemTagObjectMapper $tagMapper, - protected \Closure $childWriteAccessFunction, + string $objectId, + string $objectType, + IUser $user, + ISystemTagManager $tagManager, + ISystemTagObjectMapper $tagMapper, + \Closure $childWriteAccessFunction ) { + $this->objectId = $objectId; + $this->objectType = $objectType; + $this->user = $user; + $this->tagManager = $tagManager; + $this->tagMapper = $tagMapper; + $this->childWriteAccessFunction = $childWriteAccessFunction; } public function createFile($name, $data = null) { diff --git a/apps/dav/lib/SystemTag/SystemTagsObjectTypeCollection.php b/apps/dav/lib/SystemTag/SystemTagsObjectTypeCollection.php index 945183519e7a8..51c78071e4b7c 100644 --- a/apps/dav/lib/SystemTag/SystemTagsObjectTypeCollection.php +++ b/apps/dav/lib/SystemTag/SystemTagsObjectTypeCollection.php @@ -38,15 +38,30 @@ * Collection containing object ids by object type */ class SystemTagsObjectTypeCollection implements ICollection { + private string $objectType; + private ISystemTagManager $tagManager; + private ISystemTagObjectMapper $tagMapper; + private IUserSession $userSession; + private IGroupManager $groupManager; + protected \Closure $childExistsFunction, + protected \Closure $childWriteAccessFunction; + public function __construct( - private string $objectType, - private ISystemTagManager $tagManager, - private ISystemTagObjectMapper $tagMapper, - private IUserSession $userSession, - private IGroupManager $groupManager, - protected \Closure $childExistsFunction, - protected \Closure $childWriteAccessFunction, + string $objectType, + ISystemTagManager $tagManager, + ISystemTagObjectMapper $tagMapper, + IUserSession $userSession, + IGroupManager $groupManager, + \Closure $childExistsFunction, + \Closure $childWriteAccessFunction ) { + $this->objectType = $objectType; + $this->tagManager = $tagManager; + $this->tagMapper = $tagMapper; + $this->userSession = $userSession; + $this->groupManager = $groupManager; + $this->childExistsFunction = $childExistsFunction; + $this->childWriteAccessFunction = $childWriteAccessFunction; } /**