UNB Components Code Reference

UnbMessageRevision::AddTag method

Assigns a tag to this message revision.

public function UnbMessageRevision::AddTag ($tagId, $tagData = null);

Parameters

tagId
(int/UnbTag) Tag or its ID to assign.
tagData  –  optional, default: null
(string) Tag data to use for this message revision. (Only for tags with UserData flag, null otherwise. Max. 255 characters)

Remarks

TODO: Reset moderation state when a UserData tag has been altered - when? (Except for moderators)

Exceptions thrown

InvalidArgumentException No description available.
LengthException No description available.
UnbSecurityException If not logged in or not the same user/no moderator or tag use disallowed.
UnbDatabaseException No description available.

Privileges required

Must be logged in as the same user or with moderator privilege. You must be allowed to use the specified tag.

Member of class: UnbMessageRevision

Implementation file: messagerevision.class.php, line 1770

© 2010 Yves Goergen. UNB Components Homepage. Reference generated on 2010-03-07.