protected function setTagOption($tagName, $optionName, $optionValue)
	{
		if (isset($this->tagsConfig[$tagName]))
		{
			// Copy the tag's config and remove it. That will destroy the reference
			$tagConfig = $this->tagsConfig[$tagName];
			unset($this->tagsConfig[$tagName]);

			// Set the new value and replace the tag's config
			$tagConfig[$optionName]     = $optionValue;
			$this->tagsConfig[$tagName] = $tagConfig;
		}
	}
protected function setTagOption($tagName, $optionName, $optionValue)
	{
		if (isset($this->tagsConfig[$tagName]))
		{
			// Copy the tag's config and remove it. That will destroy the reference
			$tagConfig = $this->tagsConfig[$tagName];
			unset($this->tagsConfig[$tagName]);

			// Set the new value and replace the tag's config
			$tagConfig[$optionName]     = $optionValue;
			$this->tagsConfig[$tagName] = $tagConfig;
		}
	}
protected function setTagOption ( $ tagName , $ optionName , $ optionValue ) { if ( isset ( $ this -> tagsConfig [ $ tagName ] ) ) { // Copy the tag's config and remove it. That will destroy the reference $ tagConfig = $ this -> tagsConfig [ $ tagName ] ; unset ( $ this -> tagsConfig [ $ tagName ] ) ; // Set the new value and replace the tag's config $ tagConfig [ $ optionName ] = $ optionValue ; $ this -> tagsConfig [ $ tagName ] = $ tagConfig ; } }
Set a tag's option

This method ensures that the tag's config is a value and not a reference, to prevent
potential side-effects. References contained *inside* the tag's config are left untouched

@param  string $tagName     Tag's name
@param  string $optionName  Option's name
@param  mixed  $optionValue Option's value
@return void
Set a tag s option