public static function getXDomainId($domain)
	{
		$db = \App::get('db');

		if (empty($domain) || ($domain == 'hubzero'))
		{
			return false;
		}

		$query = 'SELECT domain_id FROM `#__xdomains` WHERE domain=' . $db->quote($domain) . ';';
		$db->setQuery($query);

		$result = $db->loadObject();

		if (empty($result))
		{
			return false;
		}

		return $result->domain_id;
	}
public static function getXDomainId($domain)
	{
		$db = \App::get('db');

		if (empty($domain) || ($domain == 'hubzero'))
		{
			return false;
		}

		$query = 'SELECT domain_id FROM `#__xdomains` WHERE domain=' . $db->quote($domain) . ';';
		$db->setQuery($query);

		$result = $db->loadObject();

		if (empty($result))
		{
			return false;
		}

		return $result->domain_id;
	}
public static function getXDomainId ( $ domain ) { $ db = \ App :: get ( 'db' ) ; if ( empty ( $ domain ) || ( $ domain == 'hubzero' ) ) { return false ; } $ query = 'SELECT domain_id FROM `#__xdomains` WHERE domain=' . $ db -> quote ( $ domain ) . ';' ; $ db -> setQuery ( $ query ) ; $ result = $ db -> loadObject ( ) ; if ( empty ( $ result ) ) { return false ; } return $ result -> domain_id ; }
Get domain ID

@param   string  $domain
@return  mixed
Get domain ID