public function setHeadData($data)
	{
		if (empty($data) || !is_array($data))
		{
			return;
		}

		$this->title        = (isset($data['title']) && !empty($data['title'])) ? $data['title'] : $this->title;
		$this->description  = (isset($data['description']) && !empty($data['description'])) ? $data['description'] : $this->description;
		$this->link         = (isset($data['link']) && !empty($data['link'])) ? $data['link'] : $this->link;

		$this->_metaTags    = (isset($data['metaTags']) && !empty($data['metaTags'])) ? $data['metaTags'] : $this->_metaTags;
		$this->_links       = (isset($data['links']) && !empty($data['links'])) ? $data['links'] : $this->_links;
		$this->_styleSheets = (isset($data['styleSheets']) && !empty($data['styleSheets'])) ? $data['styleSheets'] : $this->_styleSheets;
		$this->_style       = (isset($data['style']) && !empty($data['style'])) ? $data['style'] : $this->_style;
		$this->_scripts     = (isset($data['scripts']) && !empty($data['scripts'])) ? $data['scripts'] : $this->_scripts;
		$this->_script      = (isset($data['script']) && !empty($data['script'])) ? $data['script'] : $this->_script;
		$this->_custom      = (isset($data['custom']) && !empty($data['custom'])) ? $data['custom'] : $this->_custom;

		return $this;
	}
public function setHeadData($data)
	{
		if (empty($data) || !is_array($data))
		{
			return;
		}

		$this->title        = (isset($data['title']) && !empty($data['title'])) ? $data['title'] : $this->title;
		$this->description  = (isset($data['description']) && !empty($data['description'])) ? $data['description'] : $this->description;
		$this->link         = (isset($data['link']) && !empty($data['link'])) ? $data['link'] : $this->link;

		$this->_metaTags    = (isset($data['metaTags']) && !empty($data['metaTags'])) ? $data['metaTags'] : $this->_metaTags;
		$this->_links       = (isset($data['links']) && !empty($data['links'])) ? $data['links'] : $this->_links;
		$this->_styleSheets = (isset($data['styleSheets']) && !empty($data['styleSheets'])) ? $data['styleSheets'] : $this->_styleSheets;
		$this->_style       = (isset($data['style']) && !empty($data['style'])) ? $data['style'] : $this->_style;
		$this->_scripts     = (isset($data['scripts']) && !empty($data['scripts'])) ? $data['scripts'] : $this->_scripts;
		$this->_script      = (isset($data['script']) && !empty($data['script'])) ? $data['script'] : $this->_script;
		$this->_custom      = (isset($data['custom']) && !empty($data['custom'])) ? $data['custom'] : $this->_custom;

		return $this;
	}
public function setHeadData ( $ data ) { if ( empty ( $ data ) || ! is_array ( $ data ) ) { return ; } $ this -> title = ( isset ( $ data [ 'title' ] ) && ! empty ( $ data [ 'title' ] ) ) ? $ data [ 'title' ] : $ this -> title ; $ this -> description = ( isset ( $ data [ 'description' ] ) && ! empty ( $ data [ 'description' ] ) ) ? $ data [ 'description' ] : $ this -> description ; $ this -> link = ( isset ( $ data [ 'link' ] ) && ! empty ( $ data [ 'link' ] ) ) ? $ data [ 'link' ] : $ this -> link ; $ this -> _metaTags = ( isset ( $ data [ 'metaTags' ] ) && ! empty ( $ data [ 'metaTags' ] ) ) ? $ data [ 'metaTags' ] : $ this -> _metaTags ; $ this -> _links = ( isset ( $ data [ 'links' ] ) && ! empty ( $ data [ 'links' ] ) ) ? $ data [ 'links' ] : $ this -> _links ; $ this -> _styleSheets = ( isset ( $ data [ 'styleSheets' ] ) && ! empty ( $ data [ 'styleSheets' ] ) ) ? $ data [ 'styleSheets' ] : $ this -> _styleSheets ; $ this -> _style = ( isset ( $ data [ 'style' ] ) && ! empty ( $ data [ 'style' ] ) ) ? $ data [ 'style' ] : $ this -> _style ; $ this -> _scripts = ( isset ( $ data [ 'scripts' ] ) && ! empty ( $ data [ 'scripts' ] ) ) ? $ data [ 'scripts' ] : $ this -> _scripts ; $ this -> _script = ( isset ( $ data [ 'script' ] ) && ! empty ( $ data [ 'script' ] ) ) ? $ data [ 'script' ] : $ this -> _script ; $ this -> _custom = ( isset ( $ data [ 'custom' ] ) && ! empty ( $ data [ 'custom' ] ) ) ? $ data [ 'custom' ] : $ this -> _custom ; return $ this ; }
Set the HTML document head data

@param   array   $data  The document head data in array form
@return  object  instance of $this to allow chaining
Set the HTML document head data