public function setData($key, $data, $registry = null)
	{
		if ($registry == null) {
			$registry = $this->default;
		}
		if (is_string($key . $registry) && $this->registryExists($registry)) {
			$this->data[self::REGISTRY][$registry][$key] = $data;
			$this->dirty = true;
			return true;
		}
		return false;
	}
public function setData($key, $data, $registry = null)
	{
		if ($registry == null) {
			$registry = $this->default;
		}
		if (is_string($key . $registry) && $this->registryExists($registry)) {
			$this->data[self::REGISTRY][$registry][$key] = $data;
			$this->dirty = true;
			return true;
		}
		return false;
	}
public function setData ( $ key , $ data , $ registry = null ) { if ( $ registry == null ) { $ registry = $ this -> default ; } if ( is_string ( $ key . $ registry ) && $ this -> registryExists ( $ registry ) ) { $ this -> data [ self :: REGISTRY ] [ $ registry ] [ $ key ] = $ data ; $ this -> dirty = true ; return true ; } return false ; }
Saves data to the registry

@param string $key the name of the key that will hold the data
@param array $data the data to save
@param string $registry the name of the registry

@return bool
Saves data to the registry