public function & SetTopLevelDomain ($topLevelDomain) {
		/** @var $this \MvcCore\Request */
		if ($this->domainParts === NULL) $this->initDomainSegments();
		$this->domainParts[2] = $topLevelDomain;
		$this->hostName = trim(implode('.', $this->domainParts), '.');
		if ($this->hostName && $this->portDefined) 
			$this->host = $this->hostName . ':' . $this->port;
		$this->domainUrl = NULL;
		$this->baseUrl = NULL;
		$this->requestUrl = NULL;
		$this->fullUrl = NULL;
		return $this;
	}
public function & SetTopLevelDomain ($topLevelDomain) {
		/** @var $this \MvcCore\Request */
		if ($this->domainParts === NULL) $this->initDomainSegments();
		$this->domainParts[2] = $topLevelDomain;
		$this->hostName = trim(implode('.', $this->domainParts), '.');
		if ($this->hostName && $this->portDefined) 
			$this->host = $this->hostName . ':' . $this->port;
		$this->domainUrl = NULL;
		$this->baseUrl = NULL;
		$this->requestUrl = NULL;
		$this->fullUrl = NULL;
		return $this;
	}
public function & SetTopLevelDomain ( $ topLevelDomain ) { /** @var $this \MvcCore\Request */ if ( $ this -> domainParts === NULL ) $ this -> initDomainSegments ( ) ; $ this -> domainParts [ 2 ] = $ topLevelDomain ; $ this -> hostName = trim ( implode ( '.' , $ this -> domainParts ) , '.' ) ; if ( $ this -> hostName && $ this -> portDefined ) $ this -> host = $ this -> hostName . ':' . $ this -> port ; $ this -> domainUrl = NULL ; $ this -> baseUrl = NULL ; $ this -> requestUrl = NULL ; $ this -> fullUrl = NULL ; return $ this ; }
Set TOP level domain like `com` or `co.uk`.
Method also change server name and host record automatically.
@param string|NULL $topLevelDomain
@return \MvcCore\Request|\MvcCore\IRequest
Set TOP level domain like com or co . uk . Method also change server name and host record automatically .