protected function replaceAttributes($data)
	{
		foreach ($data as $attribute => $value) {
			$replacement = $this->replaceAttribute($attribute);
			unset($data[$attribute]);
			$data[$replacement] = $value;
		}

		return $data;
	}
protected function replaceAttributes($data)
	{
		foreach ($data as $attribute => $value) {
			$replacement = $this->replaceAttribute($attribute);
			unset($data[$attribute]);
			$data[$replacement] = $value;
		}

		return $data;
	}
protected function replaceAttributes ( $ data ) { foreach ( $ data as $ attribute => $ value ) { $ replacement = $ this -> replaceAttribute ( $ attribute ) ; unset ( $ data [ $ attribute ] ) ; $ data [ $ replacement ] = $ value ; } return $ data ; }
Replace the attribute names with their replacements.

@param array $data

@return array
Replace the attribute names with their replacements .