add tag

@param Shopgate_Model_Catalog_Tag $tag
160137
public function addTag($tag)
    {
        $tags = $this->getTags();
        array_push($tags, $tag);
        $this->setTags($tags);
    }
174500
def add_consumer_tag(self, tag):
        
        if not is_string(tag):
            raise AMQPChannelError('consumer tag needs to be a string')
        if tag not in self._consumer_tags:
            self._consumer_tags.append(tag)
814090
def add_tag(tag)
      if @counters[:attributes][:tag] >= Mailgun::Chains::MAX_TAGS
        fail Mailgun::ParameterError, 'Too many tags added to message.', tag
      end
      set_multi_complex('o:tag', tag)
      @counters[:attributes][:tag] += 1
    end
653297
public function addTag($tag)
    {
        if (count($this->tags) >= self::TAG_ITEMS_LIMIT) {
            throw new Exception\GoogleVideoUrlTagException(
                sprintf('The tags limit of %d items is exceeded.', self::TAG_ITEMS_LIMIT)
            );
        }

        $this->tags[] = $tag;

        return $this;
    }
690350
public function addAction(string $tag, callable $callback, ?int $priority = null)
    {
        $args = [$tag, $callback];
        if (!is_null($priority)) $args[] = $priority;

        return $this->callGlobalFunction('add_action', $args);
    }
213757
public function closeTag($tag = null)
    {
        if ($tag === null) {
            $tag = $this->tag;
        }

        $this->append(sprintf('</%s>', $tag));
        return $this;
    }
1193955
protected function publishTag($tag)
    {
        foreach ($this->pathsToPublish($tag) as $from => $to) {
            $this->publishItem($from, $to);
        }
    }
1005604
public function add_tag( $tag = '', $regex = '', $force = false ) {
		if ( ! isset( $this->rewrite_tag[ $tag ] ) || isset( $this->rewrite_tag[ $tag ] ) && true === $force ) {
			$this->rewrite_tag[ $tag ] = $regex;
		}
		return $this;
	}
487594
public function normalizeTag(Tag $tag)
	{
		if (isset($tag->template) && !$tag->template->isNormalized())
		{
			$tag->template->normalize($this);
		}
	}
905359
public function addTag(Tag $tag)
    {
        // Add tag if not existing
        if (!$this->hasTag($tag)) {
            $this->tags[$tag->getTag()] = $tag;
        }

        // Increment counter if no override in the Tag entity
        if ($tag->getCounter() === null) {
            $tag->incCounter();
        }

        // Store the max counter
        if ($tag->getCounter() > $this->max) {
            $this->max = $tag->getCounter();
        }

        return $this;
    }
519805
public function addNoSlashTag($tag): Dom
    {
        if ( ! is_array($tag)) {
            $tag = [$tag];
        }
        foreach ($tag as $value) {
            $this->noSlash[] = $value;
        }

        return $this;
    }
79648
protected function createHtmlTag(array $tag)
    {
        $tagModel = new Shopgate_Model_Redirect_HtmlTag();
        $tagModel->setName($tag['name']);

        if (empty($tag['attributes'])) {
            return $tagModel;
        }

        $attributes = array();
        foreach ($tag['attributes'] as $attribute) {
            if (empty($attribute['name'])) {
                continue;
            }

            $attributes[] = $this->createHtmlTagAttribute($attribute);
        }

        $tagModel->setAttributes($attributes);

        return $tagModel;
    }
356770
public function addTag($tag, $publicIds = array(), $options = array())
    {
        return $this->getUploader()->add_tag($tag, $publicIds, $options);
    }
1309977
private function addTag($tagName)
	{
		$model = static::$taggingUtility->tagModelString();
		$tag = $model::byTagName($tagName)->first();

		if($tag) {
			// If tag is exists, do not create
			$count = $this->tagged()->where('tag_id', '=', $tag->id)->take(1)->count();
			if($count >= 1) {
				return;
			} else {
				$this->tags()->attach($tag->id);
			}
		} else {
			// If tag is not exists, create tag and attach to object
			$tag = new $model;
			$tag->name = $tagName;
			$tag->save();

			$this->tags()->attach($tag->id);
		}
		static::$taggingUtility->incrementCount($tag, 1);

		if (config('taggable.is_tagged_label_enable')
			&& $this->is_tagged != 'yes'
		) {
			$this->is_tagged = 'yes';
			$this->save();
		}

		unset($this->relations['tagged']);
		event(new TagAdded($this));
	}
501571
static public function add($tag,$name) {
        if(!isset(self::$tags[$tag])){
            self::$tags[$tag]   =   array();
        }
        if(is_array($name)){
            self::$tags[$tag]   =   array_merge(self::$tags[$tag],$name);
        }else{
            self::$tags[$tag][] =   $name;
        }
    }
601831
protected void appendTag(CharSequence tag) {
        final TagView newTag = new TagView(getContext(), TagView.STATE_NORMAL, tag);
        newTag.setOnClickListener(mInternalTagClickListener);
        addView(newTag);
    }
1157601
public function add_tag($tag, $message = null) {
		if ($message === null) {
			$message = $tag;
		}
		return $this->run("tag -a $tag -m " . escapeshellarg($message));
	}