public function sendPresence($to, $from = NULL, $type = NULL) {
		$type = is_null($type) ? '' : " type=\"{$type}\"";
		return $this->send('<presence to="' . htmlspecialchars($to) . '" from="' . (is_null($from) ? $this->component_name : htmlspecialchars("$from@{$this->component_name}")) . '"' . $type . ' />');
	}
public function sendPresence($to, $from = NULL, $type = NULL) {
		$type = is_null($type) ? '' : " type=\"{$type}\"";
		return $this->send('<presence to="' . htmlspecialchars($to) . '" from="' . (is_null($from) ? $this->component_name : htmlspecialchars("$from@{$this->component_name}")) . '"' . $type . ' />');
	}
public function sendPresence ( $ to , $ from = NULL , $ type = NULL ) { $ type = is_null ( $ type ) ? '' : " type=\"{$type}\"" ; return $ this -> send ( '<presence to="' . htmlspecialchars ( $ to ) . '" from="' . ( is_null ( $ from ) ? $ this -> component_name : htmlspecialchars ( "$from@{$this->component_name}" ) ) . '"' . $ type . ' />' ) ; }
Send a presence stanza to some JID
@param string target Jabber ID
@param string source JID (only left part). If not provided then component’s JID itself is used as the source JID for the stanza.
Send a presence stanza to some JID