@@ -61,6 +61,7 @@ public function getGeneratedByAITag(): ISystemTag;
6161 * @param string $tagName tag name
6262 * @param bool $userVisible whether the tag is visible by users
6363 * @param bool $userAssignable whether the tag is assignable by users
64+ * @param ?IUser $user the user that wants to create a tag. Null to use the one in session.
6465 *
6566 * @return ISystemTag system tag
6667 *
@@ -69,8 +70,9 @@ public function getGeneratedByAITag(): ISystemTag;
6970 *
7071 * @since 9.0.0
7172 * @since 31.0.0 Can throw TagCreationForbiddenExceptionif user doesn't have the right to create a new tag
73+ * @since 34.0.0 Added nullable $user parameter
7274 */
73- public function createTag (string $ tagName , bool $ userVisible , bool $ userAssignable ): ISystemTag ;
75+ public function createTag (string $ tagName , bool $ userVisible , bool $ userAssignable, ? IUser $ user = null ): ISystemTag ;
7476
7577 /**
7678 * Returns all known tags, optionally filtered by visibility.
@@ -92,15 +94,17 @@ public function getAllTags($visibilityFilter = null, $nameSearchPattern = null):
9294 * @param bool $userVisible whether the tag is visible by users
9395 * @param bool $userAssignable whether the tag is assignable by users
9496 * @param string $color color
97+ * @param ?IUser $user the user that wants to update a tag. Null to use the one in session.
9598 *
9699 * @throws TagNotFoundException if tag with the given id does not exist
97100 * @throws TagAlreadyExistsException if there is already another tag
98101 * with the same attributes
99102 *
100103 * @since 9.0.0
101104 * @since 31.0.0 `$color` parameter added
105+ * @since 34.0.0 Added nullable $user parameter
102106 */
103- public function updateTag (string $ tagId , string $ newName , bool $ userVisible , bool $ userAssignable , ?string $ color) ;
107+ public function updateTag (string $ tagId , string $ newName , bool $ userVisible , bool $ userAssignable , ?string $ color, ? IUser $ user = null ): void ;
104108
105109 /**
106110 * Delete the given tags from the database and all their relationships.
0 commit comments