You are here

public function TagadelicCloud::add_tag in Tagadelic 7.2

Add a new tag to the cloud

Parameters

$tag TagadelicTag: instance of TagadelicTag.

return $this, for chaining.

File

./TagadelicCloud.php, line 56

Class

TagadelicCloud
class TagadelicCloud TagadelicCloud, contains a list of tags and methods to manipulate this set of tags. It can operate on the list of tags.

Code

public function add_tag($tag) {
  $this->tags[] = $tag;
  return $this;
}