Add tag.
Adds specified tag to the specified media

@param string $tag name of the tag to add
@return XiboLibrary
488976
public function AddTag($tag)
    {
        $this->tag = $tag;
        $response = $this->doPost('/library/' . $this->mediaId . '/tag', [
            'tag' => [$tag]
        ]);

        $tags = $this->hydrate($response);
        foreach ($response['tags'] as $item) {
            $tag = new XiboLibrary($this->getEntityProvider());
            $tag->hydrate($item);
            $tags->tags[] = $tag;
        }
        return $this;
    }
1012381
public function add($value)
    {
        /** @var $tag TagInterface */
        $tag = $this->create($value);

        if (null !== $persistedTag = $this->findOneByCode($tag->getCode())) {
            $tag = $persistedTag;
        } else {
            $this->save($tag);
        }

        return $tag;
    }
623862
public static function addCustomFields($tag)
    {
        $tag = new FormTag($tag);

        if (empty($tag->getType())) {
            return '';
        }

        $validation_error = wpcf7_get_validation_error($tag->getName());
        $class = self::getClass($tag, $validation_error);

        $atts = self::getAtts($tag, $validation_error, $class);

        $html = sprintf(
            '<input class="%1$s" %2$s />%3$s',
            sanitize_html_class($tag->getName()),
            $atts,
            $validation_error
        );

        return $html;
    }
369660
public function setTag(array $tag)
    {
        $this->validateInput(
            $tag,
            $this->validator,
            'validateTag',
            $this->exception,
            'Provided tag array is not a valid value.'
        );

        foreach ($tag as $tagName) {
            self::$xml['tag'] .= '<video:tag>'.$tagName.'</video:tag>';
        }

        return $this;
    }
360640
public static function addTag(string $string, string $tag): string
    {
        $lastPoint = strrpos($string, '.');
        return ($tag ? substr_replace($string, sprintf('.%s.', $tag), $lastPoint, 1) : $string);
    }
369574
public void addTag(IccTag tag) {
    tags.add(tag);
    hashTagsId.put(tag.signature, tag);
    Tag t = TiffTags.getTag(tag.signature);
    if (t != null)
      hashTagsName.put(t.getName(), tag);
  }
972052
public function tag($tag)
    {
        $route = $this->factory->createRoute($this, null, array());

        $this->addRoute($route);

        return $route->tag($tag);
    }
243510
public function openTag($tagName)
    {
        $this->append(sprintf('<%s', $tagName));
        $this->tag = $tagName;

        return $this;
    }
13880
public function removeTag($tag)
    {
        $index = array_search($tag, $this->tags);

        if ($index !== false) {
            array_splice($this->tags, $index, 1);
            $this->ref = null;
        }

        return $this;
    }
166905
public function removeTag($tag)
    {
        $this->tag = $tag;
        $this->getLogger()->info('Removing tag: ' . $tag . ' from layout ID ' . $this->mediaId);
        $this->doPost('/library/' . $this->mediaId . '/untag', [
            'tag' => [$tag]
        ]);

        return $this;
    }
979853
public void addTag(TagValue tag) {
    //int pos = 0;
    //while (pos < tags.size() && tags.get(pos).getId() < tag.getId()) pos++;
    //tags.add(pos, tag);
    tags.add(tag);
    if (!hashTagsId.containsKey(tag.getId())) {
      hashTagsId.put(tag.getId(), tag);
    }
    Tag t = TiffTags.getTag(tag.getId());
    if (t != null) {
      if (hashTagsName.containsKey(t.getName())) {
        hashTagsName.put(t.getName(), tag);
      }
    }
  }
757334
public function addTag(Tag $tag)
    {
        $tag->setBlog($this);
        $this->tags->add($tag);

        return $tag;
    }
354668
public function withTag($tag): Identifier
    {
        $obj = clone $this;
        $obj->_tag = new BigInt($tag);
        return $obj;
    }
1258506
public static function addCustomSubmitBtn($tag)
    {
        $tag = new FormTag($tag);

        $class = wpcf7_form_controls_class($tag->getType());

        $atts = [];

        $atts['class'] = $tag->get_class_option($class).' btn';
        $atts['id'] = $tag->get_id_option();
        $atts['tabindex'] = $tag->get_option('tabindex', 'int', true);

        $value = isset($tag->values[0]) ? $tag->values[0] : '';

        if (empty($value)) {
            $value = __('Send', 'contact-form-7');
        }

        $atts['type'] = 'submit';
        $atts['value'] = $value;

        $atts = wpcf7_format_atts($atts);

        $html = sprintf('<button type="submit" %1$s>%2$s</button>', $atts, $value);

        return $html;
    }
230241
public void addTag(String tag) {
   		if (insertTagDb(tag)) {
   			this.tags.add(tag);
   			notifyEvent(HistoryReferenceEventPublisher.EVENT_TAG_ADDED);
   		}
   	}
290350
def tag_add(self, item, tag):
        
        tags = self.item(item, "tags")
        self.item(item, tags=tags + (tag,))
760722
public function addTag($location, $lastModified = null, $changeFrequency = null, $priority = null)
    {
        $tag = $location instanceof Tag ? $location : new Tag($location, $lastModified, $changeFrequency, $priority);

        $this->tags[] = $tag;

        return $tag;
    }