You are here

function TagadelicCloud::__construct in Tagadelic 7.2

Initalize the cloud

Parameters

id Integer, identifies this cloud; used for caching and : re-fetching of previously built clouds.

tags Array, provide tags on building. Tags can be added : later on, using `add_tag()` method.

Return value

TagadelicCloud.

File

./TagadelicCloud.php, line 25

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

function __construct($id, $tags = array()) {
  $this->id = $id;
  $this->tags = $tags;
}