src/Net/XMPP/JID.php
static public function getJid( $domain, $node = NULL, $resource = NULL ){
		$jid	= $domain;
		if( strlen( trim( $node ) ) ) 
			$jid	= $node.'@'.$domain;
		if( strlen( trim( $resource ) ) )
			$jid	.= "/".$resource;
		return $jid;
	}
static public function getJid( $domain, $node = NULL, $resource = NULL ){
		$jid	= $domain;
		if( strlen( trim( $node ) ) ) 
			$jid	= $node.'@'.$domain;
		if( strlen( trim( $resource ) ) )
			$jid	.= "/".$resource;
		return $jid;
	}
static public function getJid ( $ domain , $ node = NULL , $ resource = NULL ) { $ jid = $ domain ; if ( strlen ( trim ( $ node ) ) ) $ jid = $ node . '@' . $ domain ; if ( strlen ( trim ( $ resource ) ) ) $ jid .= "/" . $ resource ; return $ jid ; }
Builds and returns JID from parts.
@static
@access		public
@param		string		$domain		Domain name of XMPP server
@param		string		$node		Name of node on XMPP server
@param		string		$resource	Name of client resource
@return		string
Builds and returns JID from parts .